[web2py] Re: web2py logging logging.conf multiple files

2014-08-10 Thread Leonel Câmara
https://docs.python.org/2/library/logging.handlers.html#rotating-file-handler -- 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 be

[web2py] Re: web2py logging logging.conf multiple files

2014-08-10 Thread Jayadevan M
On Sunday, August 10, 2014 8:23:56 AM UTC+5:30, Leonel Câmara wrote: > > That's not really an issue, it's using a rotating log, once log reaches > max size it creates one of those numbered ones, copies the content there > and creates a new one. Your most recent log is the file without a number.

[web2py] Re: web2py logging logging.conf multiple files

2014-08-09 Thread Leonel Câmara
That's not really an issue, it's using a rotating log, once log reaches max size it creates one of those numbered ones, copies the content there and creates a new one. Your most recent log is the file without a number. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: web2py logging

2013-12-19 Thread Jayadevan M
All of a sudden, tne log entries stopped coming in /var/log/uwsgi/uwsgi.log and now they are in /var/www/web2py/logs/web2py.log. One change I made in between is to add an entry for logrotate in /etc/logrotate.d for /var/uwsgi/log. Would that have resulted in this? On Tuesday, December 3, 2013 3

Re: [web2py] Re: web2py logging

2010-08-11 Thread Jonathan Lundell
On Aug 11, 2010, at 8:21 AM, mdipierro wrote: > We could have a standard web2py logging file such as errors.log I think I have a straightforward way of doing it. I'm not sure I can get to it this week, but it should be straightforward. In the meantime, I haven't tested it, but I think console l

Re: [web2py] Re: web2py logging (and Rocket: ahoy, Tim!)

2010-08-11 Thread Jonathan Lundell
On Aug 11, 2010, at 8:21 AM, mdipierro wrote: > We could have a standard web2py logging file such as errors.log I think that would be a good default, but I'd rather have a standard web2py logging configuration file, web2py/logging.conf or the like. It could point to errors.log by default, but t

[web2py] Re: web2py logging

2010-08-11 Thread mdipierro
We could have a standard web2py logging file such as errors.log On Aug 11, 10:14 am, Jonathan Lundell wrote: > On Aug 11, 2010, at 6:00 AM, mdipierro wrote: > > > we could specify line option to change it but why not use regular > > stdout redirection? > > I suppose we could, but at least when we

Re: [web2py] Re: web2py logging

2010-08-11 Thread Jonathan Lundell
On Aug 11, 2010, at 6:00 AM, mdipierro wrote: > we could specify line option to change it but why not use regular > stdout redirection? I suppose we could, but at least when we start via web2py.py, it's good to see the startup messages directed to stdout before web2py daemonizes. The nice thin

[web2py] Re: web2py logging

2010-08-11 Thread mdipierro
we could specify line option to change it but why not use regular stdout redirection? On Aug 10, 12:28 pm, Jonathan Lundell wrote: > web2py makes semi-extensive use of the Python logging module, but (near as I > can tell) it never changes the output away from the default stdout. > > Is this true