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


Groups > comp.lang.python > #66620

Re: How to use logging

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: How to use logging
Date 2014-02-17 19:16 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <ldtn5t$4v9$1@reader1.panix.com> (permalink)
References <5a53c1ca-1104-40f2-9401-a6d3b3673ede@googlegroups.com>

Show all headers | View raw


In <5a53c1ca-1104-40f2-9401-a6d3b3673ede@googlegroups.com> kumar <arun.achutha@gmail.com> writes:

> Hi folks,

> i'm new to python i understood the logging mechanism but unable to
> understand how these are applied in real time examples can any body help
> me out

Here are some very simple examples:

    import logging

    logging.info('This message will be logged at the INFO level.')
    logging.error('This message will be logged at the ERROR level.')
    logging.debug('This message will be logged at the DEBUG level.')

Did you need help with some specific aspect of logging, like sending the
output to a file instead of the default destination?

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
gordon@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

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


Thread

How to use logging kumar <arun.achutha@gmail.com> - 2014-02-16 23:37 -0800
  Re: How to use logging Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-17 09:21 +0000
  Re: How to use logging John Gordon <gordon@panix.com> - 2014-02-17 19:16 +0000

csiph-web