nbox.nbxlib.logger
Contains our custom logger and formatters so you can log things like a pro. It can generate both inline logs as well as JSON logs (easier to consume by other tools). Json logs go really well with our custom logger for jobs and deploy where you can logs arbitrary objects and have them nicely formatted in the console.
Parts of this code are taken from the awesome pyjsonlogger
library (Pypi)
Functions
functionget_logger
[source]functionlo
[source]Classes
class_LogObject
[source]function__init__
[source]classInlineFormatter
[source]function__init__
[source]functionformat
[source]classJsonFormatter
[source]functionformat
[source]Formats a log record and serializes to json
class_JsonEncoder
[source]functiondefault
[source]functionformat_datetime_obj
[source]