Re: [web2py] Logger issue

2017-11-22 Thread Dave S
On Wednesday, November 22, 2017 at 2:50:45 AM UTC-8, Alex wrote: > > I'm not missing anything with logging.conf. As I mentioned above it is not > just simply rewriting the logging configuration because I have to adapt the > deployment process as well. Therefor I'd like to know in advance if

Re: [web2py] Logger issue

2017-11-22 Thread Alex
I'm not missing anything with logging.conf. As I mentioned above it is not just simply rewriting the logging configuration because I have to adapt the deployment process as well. Therefor I'd like to know in advance if you think that rewriting the logger would solve this issue. And I'd like to

Re: [web2py] Logger issue

2017-11-17 Thread Dave S
On Wednesday, November 15, 2017 at 10:38:09 AM UTC-8, Alex wrote: > > I've got a similar problem. I have a model file where I initialize the > logger: > What did you find missing in using logging.conf? /dps > import logging, logging.handlers > > def get_configured_logger(name): >

Re: [web2py] Logger issue

2017-10-23 Thread Kiran Subbaraman
Yes, I suggested the OP configure one for their specific app, using the example app's config as a template. Need not configure this in the code, for every request ... as they are doing so now. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On

Re: [web2py] Logger issue

2017-10-23 Thread Dave S
On Sunday, October 22, 2017 at 9:19:02 PM UTC-7, Kiran Subbaraman wrote: > > configuring the logger for every thread (`current.logger = logger`), and > this seems unnecessary. > Take a look at this logging configuration: >

Re: [web2py] Logger issue

2017-10-22 Thread Kiran Subbaraman
configuring the logger for every thread (`current.logger = logger`), and this seems unnecessary. Take a look at this logging configuration: https://github.com/web2py/web2py/blob/0d646fa5e7c731cb5c392adf6a885351e77e4903/examples/logging.example.conf, and set one up for your app.

[web2py] Logger issue

2017-10-22 Thread Ian Ryder
Hi, we're just getting logging running on an app we're building and have a what I hope is a bit of noob issue. It seems every time a request comes in a new file handle is opened and not released when the request is finished. Eventually we get an error with too many open files and everything