Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4952
| From | TheSaint <nobody@nowhere.net.no> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: A suggestion for an easy logger |
| Followup-To | comp.lang.python |
| Date | 2011-05-08 19:21 +0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <iq5ubq$moi$1@speranza.aioe.org> (permalink) |
| References | <863052b3-3b6f-482e-820a-ec1278b81b19@glegroupsg2000goo.googlegroups.com> <f0ca57e6-e93c-48ce-9291-3efbd44f3c3a@z13g2000yqg.googlegroups.com> <iq57ci$562$1@speranza.aioe.org> <iq5cev$efk$1@speranza.aioe.org> <06491221-3c68-48ca-ad9c-9cb8c171b1ed@w24g2000yqb.googlegroups.com> |
Followups directed to: comp.lang.python
Vinay Sajip wrote:
8<
> For Python 3.2 and later, it's the terminator attribute of the
> StreamHandler. See:
8<
> Unfortunately, for earlier Python versions, you'd need to subclass and
> override StreamHandler.emit() to get equivalent functionality :-(
>
I'm with 3.2 and willing to stay :)
I was trying
==================================code==================================
>>>logging.basicConfig(format='%(message)s',terminator='',level=logging.DEBUG)
>>> logging.debug('here we are')
DEBUG:root:here we are
>>>
==================================code==================================
First I didn't espect to see much more than my message. I agree that I'm
very new to the module
Second the will terminator appear only to real stdout, or am I doing
something incorrect?
Note: some word wrapping doesn't show the python shell correctly.
--
goto /dev/null
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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