A suggestion for an easy logger

Vinay Sajip vinay_sajip at yahoo.co.uk
Mon May 9 12:34:54 EDT 2011


On May 9, 3:53 pm, TheSaint <nob... at nowhere.net.no> wrote:
> Vinay Sajip wrote:
> >logging.basicConfig(level=logging.DEBUG, format='%(message)s')
>
> logging.basicConfig(format='%(message)s', level=logging.DEBUG)
>
> I formulated in the reverse order of arguments, may that cause an
> unpredicted result?

No, you can pass keyword arguments in any order - that's what makes
them keyword, as opposed to positional, arguments.

Regards,

Vinay Sajip



More information about the Python-list mailing list