Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66592 > unrolled thread
| Started by | kumar <arun.achutha@gmail.com> |
|---|---|
| First post | 2014-02-16 23:37 -0800 |
| Last post | 2014-02-17 19:16 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | kumar <arun.achutha@gmail.com> |
|---|---|
| Date | 2014-02-16 23:37 -0800 |
| Subject | How to use logging |
| Message-ID | <5a53c1ca-1104-40f2-9401-a6d3b3673ede@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-02-17 09:21 +0000 |
| Message-ID | <mailman.7089.1392628911.18130.python-list@python.org> |
| In reply to | #66592 |
On 17/02/2014 07:37, kumar wrote: > 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 > Start here http://docs.python.org/3/howto/logging.html, if that's not good enough please come back with a more detailed question, I'm certain that someone will be able to help you. Slight aside you appear to be using google groups. If that is the case would you read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent the problems that gg causes. if not sorry about the noise :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
[toc] | [prev] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2014-02-17 19:16 +0000 |
| Message-ID | <ldtn5t$4v9$1@reader1.panix.com> |
| In reply to | #66592 |
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'.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web