Re: File logger fails when used with a Gunicorn/Pyramid .ini file.

2018-09-26 Thread Mike Bayer
On Wed, Sep 26, 2018 at 4:43 AM wrote: > > I haven’t used env.py before, you’re talking about this: > https://pypi.org/project/env.py/ , correct? env.py is an integral part of your Alembic project space and you are using it. Please see the tutorial at

Re: File logger fails when used with a Gunicorn/Pyramid .ini file.

2018-09-26 Thread jens . troeger
I haven’t used env.py before, you’re talking about this: https://pypi.org/project/env.py/ , correct? On Wednesday, September 26, 2018 at 10:06:31 AM UTC+10, Mike Bayer wrote: > > oh, you know that's in the logging. logging.fileConfig() is used for > that and it's actually in your env.py. Just

Re: File logger fails when used with a Gunicorn/Pyramid .ini file.

2018-09-25 Thread jens . troeger
Huh… I use the -c option: ./bin/alembic -c proj-localhost.ini upgrade head Jens On Monday, September 24, 2018 at 11:21:42 PM UTC+10, Mike Bayer wrote: > > > Looking at the source code, we already have "here": > > if self.config_file_name: > here =

Re: File logger fails when used with a Gunicorn/Pyramid .ini file.

2018-09-24 Thread Mike Bayer
On Sun, Sep 23, 2018 at 9:53 PM wrote: > > Hello, > > In my project.ini file I have configured logging to use a file logger as > follows: > > [loggers] > keys = root, …, alembic > > [handlers] > keys = console, file > > [formatters] > keys = generic > > [logger_root] > level = INFO > handlers =

File logger fails when used with a Gunicorn/Pyramid .ini file.

2018-09-23 Thread jens . troeger
Hello, In my project.ini file I have configured logging to use a file logger as follows: [loggers] keys = root, …, alembic [handlers] keys = console, file [formatters] keys = generic [logger_root] level = INFO handlers = console qualname = [logger_alembic] level = INFO handlers = qualname