Wykres commitów

4 Commity (b4eeaae105c918ed98a8fde9be9fa9932266f03a)

Autor SHA1 Wiadomość Data
Damien George 7b1161dd1b logging: Add support for custom handlers.
Any custom handlers will be passed a LogRecord instance which has members
and a dict with "levelname", "message" and "name", to be used for creating
a log message.  The handler list is a global singleton so that sub-logging
objects all use the same set of (root) handlers.

The name of the root handler is also changed from None to "root", to match
CPython.

Signed-off-by: Damien George <damien@micropython.org>
2020-07-08 15:59:01 +10:00
Paul Sokolovsky a4f2d5665d logging: example_logging: Add testcase for exception(). 2018-05-11 14:18:02 +10:00
Paul Sokolovsky 0feab3397e logging: example_logging: Add more testcases. 2018-05-11 14:18:02 +10:00
Paul Sokolovsky 7a52c9c3ac logging: Rename example per the latest conventions. 2016-01-31 01:58:56 +02:00