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


Groups > comp.lang.python > #62289 > unrolled thread

Re: Logger module in python

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2013-12-18 10:44 +0100
Last post2013-12-18 10:44 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: Logger module in python Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-12-18 10:44 +0100

#62289 — Re: Logger module in python

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2013-12-18 10:44 +0100
SubjectRe: Logger module in python
Message-ID<mailman.4341.1387359863.18130.python-list@python.org>
---- Original Message -----
> On Wednesday, December 18, 2013 8:52:11 AM UTC+5:30,
> smileso...@gmail.com wrote:
> > Hi,
> >   I am a newbie in python. I am looking for a existing module which
> >   I can import in my program to log the objects to a file?
> 
> > I know there is a module Data::Dumper in perl which dumps the
> > objects to file. But not sure about python.
> 
> Assuming you are looking for a serialization format:
> If efficiency, easily-at-hand, standard are important then
> pickle better than json better than yaml
> 
> If however readability of the output (as the word 'log' suggests) is
> desired
> its the other way round: yaml is the most readable, pickle is utterly
> unreadable
> --
> https://mail.python.org/mailman/listinfo/python-list

There's a (better) alternative to pickle: serpent.
https://pypi.python.org/pypi/serpent

I've been told it was a standard module in python 3, I'm not sure though.
Basically it's pickle without the security issue and a readable text format.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web