On Monday, May 4, 2015 at 5:51:03 PM UTC-7, Dave S wrote:
>
>
>
> On Monday, May 4, 2015 at 5:49:15 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Monday, May 4, 2015 at 8:56:36 AM UTC-7, Christophe Meessen wrote:
>>  
>>
>>> Is there a way to see logs of worker processes ? I couldn't find any. 
>>> The logs directory of web2py is empty. 
>>>
>>>
>> I think you have to make your tasks do logging.  Here's an example of how 
>> someone set it up:
>> <URL:https://groups.google.com/d/msg/web2py/91UugH6T3dQ/6xkgen92SesJ> 
>>
>> I thought there was a more recent example, but I only find logging being 
>> *mentioned.*
>>
>
> Ah, this may be what I was remembering:
> <URL:https://groups.google.com/d/msg/web2py/91UugH6T3dQ/6xkgen92SesJ>
>


I think the second link mentions logging.conf.  In there, you should have

[loggers]
keys=root,rocket,markdown,web2py,rewrite,cron,app,welcome,myApp


(Add myApp to the existing list of keys)

and
# myApp app handler
[logger_LogServer]
level=DEBUG
qualname=web2py.app.myApp
handlers=consoleHandler,rotatingFileHandler
propagate=0


I think those are default handlers, but check under the [handlers] section 
that they aren't commented out.

Note that the welcome app example in logging.conf uses "level=WARNING".
This filters out anything less urgent than a WARNING.  myApp has this level 
opened up to DEBUG.

It appears logging.conf is only read at startup, so when you make changes, 
bounce the web2py instance.

The output goes into logs/web2py.log unless you set things up differently, 
and you should see (among web2py's own entries) something like

2015-05-04 18:26:12,028 - web2py.app.myApp - DEBUG - BEGIN: top of 
myController

/dps "now if I can just remember where I posted this next time I need it"



-- 
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/d/optout.

Reply via email to