Json formatter

broken image

in Flask web project, add username attribute to LogRecord for auto output username.

broken image

output LogStash needed log.Įasily custom(add/replace) LogRecord attribute, e.g.

broken image

Jsonformatter is a formatter for python output json log, e.g. Solve cumtom LogRecord attribute is not JSON serializable Support json.dumps all optional parameters In Flask project, add LogRecord attribute for auto output

broken image

Initial root logger like logging.basicConfig

broken image