On 7 Nov 2013, at 9:00 PM, Andrew W <[email protected]> wrote:

> Well, I just added -D 0 when starting the scheduler and it prints to the 
> console.  
> Yes, we should add something, because after reading the logging sections of 
> the book I was sure I had to add something to the conf file.

scheduler.py has this:

> IDENTIFIER = "%s#%s" % (socket.gethostname(),os.getpid())
> 
> logger = logging.getLogger('web2py.scheduler.%s' % IDENTIFIER)

I'm not sure what the motivation is for adding IDENTIFIER, since we can't know 
the pid in advance, and thus can't specify a qualname in logging.conf.


> 
> On Friday, November 8, 2013 3:46:29 PM UTC+11, Jonathan Lundell wrote:
> On 7 Nov 2013, at 7:05 PM, Andrew W <[email protected]> wrote:
> 
>> Thanks.   I've never been quite sure what to put in logging.conf for the 
>> scheduler debug key, based on the "logger =" statement in scheduler.py.
> 
> We should add a schedule section to the logging example file.
> 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to