On Aug 11, 2010, at 8:21 AM, mdipierro wrote:

> We could have a standard web2py logging file such as errors.log

I think I have a straightforward way of doing it. I'm not sure I can get to it 
this week, but it should be straightforward.

In the meantime, I haven't tested it, but I think console logging will work OK 
when web2py.py is run from the command line.

> 
> On Aug 11, 10:14 am, Jonathan Lundell <jlund...@pobox.com> wrote:
>> On Aug 11, 2010, at 6:00 AM, mdipierro wrote:
>> 
>>> we could specify line option to change it but why not use regular
>>> stdout redirection?
>> 
>> I suppose we could, but at least when we start via web2py.py, it's good to 
>> see the startup messages directed to stdout before web2py daemonizes.
>> 
>> The nice thing about having a standard logging configuration file is that it 
>> gives the user a lot more control over things. For example, if I understand 
>> the logging module correctly, it could be used to send logging to syslog.
>> 
>> A question, though: web2py can run in various deployment modes. I'm 
>> wondering if there's a central place to configure logging, common to all 
>> modes?
>> 
>> rocket does installs logging.NullHandler, for example. I'm unclear on the 
>> implications of that for web2py applications.
>> 
>> 
>> 
>>> On Aug 10, 12:28 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
>>>> web2py makes semi-extensive use of the Python logging module, but (near as 
>>>> I can tell) it never changes the output away from the default stdout.
>> 
>>>> Is this true, and if so isn't it a problem?


Reply via email to