Commits

youngking committed a6c9ca8

add logging support to gunicorn server

  • Participants
  • Parent commits b558fbe

Comments (0)

Files changed (42)

File .hgignore

File contents unchanged.
 - ...
+0.6.5 (2011-8-19)
+-------------------
+- add logging support to gunicorn server
 
 0.6.4 (2011-3-11)
 -------------------

File LICENSE

File contents unchanged.

File MANIFEST.in

File contents unchanged.

File README.rst

File contents unchanged.

File docs/Makefile

File contents unchanged.

File docs/_themes/README

File contents unchanged.

File docs/_themes/flask/static/flasky.css_t

File contents unchanged.

File docs/_themes/flask/theme.conf

File contents unchanged.

File docs/_themes/flask_small/layout.html

File contents unchanged.

File docs/_themes/flask_small/static/flasky.css_t

File contents unchanged.

File docs/_themes/flask_small/theme.conf

File contents unchanged.

File docs/_themes/flask_theme_support.py

File contents unchanged.

File docs/conf.py

File contents unchanged.

File docs/index.rst

File contents unchanged.

File docs/make.bat

File contents unchanged.

File examples/example/example/__init__.py

 # -*- encoding:utf-8 -*-
 from flask import Flask
 from example.views.frontend import frontend
+from example.views.hello import hello
 from .models import db
 
 def create_app(config=None):
         app.config.from_object(config)
     db.init_app(app)
     app.register_module(frontend)
+    app.register_module(hello)
     return app

File examples/example/example/models.py

File contents unchanged.

File examples/example/example/static/style.css

File contents unchanged.

File examples/example/example/templates/index.html

File contents unchanged.

File examples/example/example/templates/layout.html

File contents unchanged.

File examples/example/example/templates/login.html

File contents unchanged.

File examples/example/example/views/__init__.py

File contents unchanged.

File examples/example/example/views/frontend.py

File contents unchanged.

File examples/example/settings.py

File contents unchanged.

File flaskext/__init__.py

File contents unchanged.

File flaskext/actions/__init__.py

File contents unchanged.

File flaskext/actions/daemonize.py

File contents unchanged.

File flaskext/actions/fastcgi.py

File contents unchanged.

File flaskext/actions/help_actions.py

File contents unchanged.

File flaskext/actions/project_template/__init__.py_tmpl

File contents unchanged.

File flaskext/actions/project_template/manage.py_tmpl

File contents unchanged.

File flaskext/actions/project_template/settings.py_tmpl

File contents unchanged.

File flaskext/actions/project_template/static/style.css

File contents unchanged.

File flaskext/actions/project_template/templates/layout.html

File contents unchanged.

File flaskext/actions/project_template/views/__init__.py

File contents unchanged.

File flaskext/actions/project_template/views/frontend.py

File contents unchanged.

File flaskext/actions/server_actions.py

     return action
 
 def run_gunicorn_server(app):
-    def action(bind=('b','127.0.0.1:8000'),workers=('w',4),pid=('p','tmp/flask.pid')):
+    def action(bind=('b','127.0.0.1:8000'),workers=('w',4),pid=('p','tmp/flask.pid'),log_file='tmp/flask.log',log_level='info'):
         """run application use gunicorn http server
         """
         from gunicorn import version_info
         if version_info < (0, 9, 0):
             from gunicorn.arbiter import Arbiter
             from gunicorn.config import Config
-            arbiter = Arbiter(Config({'bind':bind,'workers': 4}), app)
+            arbiter = Arbiter(Config({'bind':bind,'workers': workers,'pidfile':pidfile,'logfile':logfile}), app)
             arbiter.run()
         else:
             from gunicorn.app.base import Application
                         'bind': bind,
                         'workers': workers,
                         'pidfile':pid,
+                        'logfile':log_file,
+                        'loglevel':log_level,
                     }
                 
                 def load(self):

File flaskext/actions/utils.py

File contents unchanged.

File setup.cfg

File contents unchanged.
 
 setup(
     name='Flask-Actions',
-    version='0.6.4',
+    version='0.6.5',
     url='http://blog.flyzen.com',
     license='BSD',
     author='Young King',

File tests/__init__.py

File contents unchanged.