Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4933

Re: A suggestion for an easy logger

From Vinay Sajip <vinay_sajip@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: A suggestion for an easy logger
Date 2011-05-07 19:27 -0700
Organization http://groups.google.com
Message-ID <f0ca57e6-e93c-48ce-9291-3efbd44f3c3a@z13g2000yqg.googlegroups.com> (permalink)
References <863052b3-3b6f-482e-820a-ec1278b81b19@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On May 8, 1:00 am, mcilrain <noah.mcilra...@gmail.com> wrote:
> Aside from the fact that it's very Javay, what's wrong with theloggingmodule?

It's not especially Java-like. Since you can log using just

import logging

logging.basicConfig(level=logging.DEBUG)
logging.debug('This is %sic, not %s-like - that's FUD', 'Python',
'Java')

it doesn't seem especially Java-like: no factories, Interfaces,
builders, using plain functions etc.

The second line is optional and needed only if you want to log DEBUG
or INFO messages (as the default threshold is WARNING).

Despite other logging libraries claiming to be more Pythonic, they
have pretty much the same concepts as stdlib logging - because those
concepts are tied to logging, not to Java. Call it correlation vs.
causation, or convergent evolution, or what you will.

Regards,

Vinay Sajip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: A suggestion for an easy logger mcilrain <noah.mcilraith@gmail.com> - 2011-05-07 17:00 -0700
  Re: A suggestion for an easy logger Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-07 19:27 -0700
    Re: A suggestion for an easy logger TheSaint <nobody@nowhere.net.no> - 2011-05-08 12:49 +0800
      Re: A suggestion for an easy logger TheSaint <nobody@nowhere.net.no> - 2011-05-08 14:15 +0800
        Re: A suggestion for an easy logger Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-08 03:26 -0700
          Re: A suggestion for an easy logger TheSaint <nobody@nowhere.net.no> - 2011-05-08 19:21 +0800
            Re: A suggestion for an easy logger Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-08 05:31 -0700
              Re: A suggestion for an easy logger TheSaint <nobody@nowhere.net.no> - 2011-05-09 22:53 +0800
                Re: A suggestion for an easy logger Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-09 09:34 -0700
                Re: A suggestion for an easy logger TheSaint <nobody@nowhere.net.no> - 2011-05-10 18:06 +0800

csiph-web