Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web2py application logging

Tags:

logging

web2py

What is the recommended way to log application-specific messages in web2py? I found the documentation on HTTP logging, but I'm thinking more of messages for debugging and tracking.

Should I simply use the logging module in each separate controller file? Is there a central place in which I could initialize a logger that can be shared between controllers? Or, is something built-in to web2py that I should use?

Update: It looks like I can't even fully use the logging module in web2py. It looks like web2py ships with it's own version of the python libraries (in library.zip), which I'm not a big fan of. Is that by design? I'm guessing there will be issues with simply adding my installed Python libraries to the sys.path at run-time, so what should I do?

like image 428
MikeWyatt Avatar asked May 21 '10 15:05

MikeWyatt


2 Answers

Here it is described in detail how to do it.

like image 103
reen Avatar answered Nov 15 '22 10:11

reen


http://www.mail-archive.com/[email protected]/msg35964.html

like image 25
mdipierro Avatar answered Nov 15 '22 09:11

mdipierro