Daniel Dehennin writes:
> Hello,
Hi
[...]
> I tried to setup the same for my scripts with
> "logging.config.dictConfig()" without much success, I want to limit
> output to stdout to INFO, everything bellow INFO should be sent to
> stderr instead.
>
> Any hints?
#x27; : 'logging.StreamHandler',
'stream' : 'ext://sys.stderr',
'level' : 'WARNING',
'formatter' : 'stderr', }
},
'root' : { 'level' : options.log_level.upper(),
'handlers' : ['stdout', 'stderr'],
},
}
logging.config.dictConfig( config )
return logging.getLogger()
#+end_src
Regards.
--
Daniel Dehennin
EOLE
pgpP128hCWd2L.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list