On Wednesday, July 1, 2020 at 2:51:32 PM UTC-7, Luciano Bovio wrote: > > Is it possible to log web2py output messages to a file when running > web2py+nginx+uwsgi (installed with provided ubuntu script) ? > > I need to view the messages that i see in console when running rocket > server. > > Thanks >
The built-in logging works pretty good. Replace your print statements with logger.debug() or logger.error() ...The same formatted string you fed print works for the argument of logger.debug. Log files are in web2py/logs, and there's an autorotate feature to prevent logs from takng over your server. <URL:http://web2py.com/books/default/chapter/29/04/the-core#Logging> (I'm running nginx+uwsgi on AWS linux) /dps -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/97d280e2-37a1-4261-816a-77617878a885o%40googlegroups.com.