I have a system running Web2py + Nginx + ubuntu (installed with provided ubuntu script) and all print statements are logged to the uwsgi log at /var/log/uwsgi
On Thursday, July 2, 2020 at 7:19:21 AM UTC+2 snide...@gmail.com wrote: > > > 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/80a89819-2336-4757-8134-d8b67e284bd8n%40googlegroups.com.