I'm at a loss here. I've created a model named log.py, which contains: import logging logger = logging.getLogger(request.application) logger.setLevel(logging.DEBUG)
I copied logging.example.conf to my web2py folder and renamed it to logging.conf and added myapp to the end of keys, then added the following code for the handler: # myapp app handler [logger_myapp] level=DEBUG handlers=consoleHandler,rotatingFileHandler qualname=web2py.app.myapp propagate=0 In default.py I've added a couple of logging statements similar to thie: logger.debug("Entering status_check() - logging test") When I run this locally, I see a file created at ./web2py/logs/web2py.log. However, when I deploy this same code to my server, I get nothing. I went so far as to create that file manually and chmod 777 the file to see if I had some silly permissions issue, and I see nothing. I'm running web2py's built in server via a cronjob like this: @reboot python /home/mike/web2py/web2py.py -i 0.0.0.0 -p 80 -a "<recycle>" The reason I'm adding the logging is because I was trying to run a subprocess in order to ping a certain set of URL's to check their status upon a page load, using nping, and was having the same problem with that (subprocess runs fine on local machine, but is not running correctly on server). Ideas and suggestions would be appreciated. Thanks! Of note, all references to "myapp" above are actually named for the correct application name, not just the text "myapp". -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.