[web2py] Re: Application logging

2011-02-13 Thread Michael McGinnis
I can't find documentation in the book for this, either by searching for logging.conf, logger.app or web2py.app. Maybe I'm lazy or ignorant. But I love the usability consulting part of my job: anytime something isn't extremely easy for me to find on a website, I can claim that it's not my fault,

Re: [web2py] Re: Application logging

2011-02-13 Thread Jonathan Lundell
On Feb 13, 2011, at 5:41 AM, Michael McGinnis wrote: I can't find documentation in the book for this, either by searching for logging.conf, logger.app or web2py.app. Maybe I'm lazy or ignorant. But I love the usability consulting part of my job: anytime something isn't extremely easy for me

Re: [web2py] Re: Application logging

2011-02-12 Thread pbreit
What is current recommendation for app logging?

Re: [web2py] Re: Application logging

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 9:44 PM, pbreit wrote: What is current recommendation for app logging? You can start by copying logging.example.conf to logging.conf, and then editing it to suit your requirements. Either log with web2py.app (logger_app) or create a new logger specific to your own

Re: [web2py] Re: Application logging

2010-04-29 Thread Keith Edmunds
Hi Iceberg But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid unstoppable log file size Thanks for providing it. I can see the sense of your suggestion; however, I want the logging to be to the standard syslog files (which are

[web2py] Re: Application logging

2010-04-29 Thread mdipierro
It may go in tools. What do other people think? On Apr 29, 8:37 am, Keith Edmunds k...@midnighthax.com wrote: Hi Iceberg But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid unstoppable log file size Thanks for providing

Re: [web2py] Re: Application logging

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 7:22 AM, mdipierro wrote: It may go in tools. What do other people think? Logging is important enough for that, yes. WRT Keith's comment below: Python logging offers a rich collection of logging mechanisms, one of which is syslog, which in turn offers a rich collection of

[web2py] Re: Application logging

2010-04-29 Thread szimszon
I think too that logging is important. And I vote for syslogging :) On ápr. 29, 16:22, mdipierro mdipie...@cs.depaul.edu wrote: It may go in tools. What do other people think? On Apr 29, 8:37 am, Keith Edmunds k...@midnighthax.com wrote: Hi Iceberg But I would recommend you use a

Re: [web2py] Re: Application logging

2010-04-29 Thread Mathieu Clabaut
The use of python logging modules inside web2py will ideally allow people to use syslog or any other logging back end provided by this module. It would be very nice if web2py integration would allow logging for GAE (into database or whatever mechanism is provided by GAE..). Perhaps we should have

Re: [web2py] Re: Application logging

2010-04-29 Thread Thadeus Burgess
+1 for a enterprise logging system that you can configure the backend :) -- Thadeus On Thu, Apr 29, 2010 at 10:52 AM, Mathieu Clabaut mathieu.clab...@gmail.com wrote: The use of python logging modules inside web2py will ideally allow people to use syslog or any other logging back end

[web2py] Re: Application logging

2010-04-28 Thread Iceberg
I happened to be the creator of that code snippet. :-) Glad to know that it helps you. But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid unstoppable log file size, and it serves the log by

[web2py] Re: Application logging

2010-04-28 Thread mdipierro
Can it be moved to web2pyslices? On Apr 28, 1:57 pm, Iceberg iceb...@21cn.com wrote: I happened to be the creator of that code snippet. :-) Glad to know that it helps you. But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid

[web2py] Re: Application logging

2010-04-27 Thread knitatoms
I'd be interested in a step by step guide to setting up this kind of logging. I'm new to web2py and python and I think it would help my learning. I already get some good info by monitoring the http log file with the free Kiwi log viewer (on Windows) which tails the file. Could someone explain

[web2py] Re: Application logging

2010-04-27 Thread omicron
In 'models' folder, i create the file named '0.py' like this : def _init_log(): import os, logging, logging.handlers logger = logging.getLogger(request.application) logger.setLevel(logging.DEBUG) handler =

Re: [web2py] Re: Application logging

2010-04-27 Thread Keith Edmunds
On Tue, 27 Apr 2010 09:31:50 -0700 (PDT), minkto...@gmail.com said: I'd be interested in a step by step guide to setting up this kind of logging. I found some older posts that helped in the end. I now have a modules/logging.py file that looks like: def _init_log(): From