in Flask web project, add username attribute to LogRecord for auto output username.
output LogStash needed log.Įasily custom(add/replace) LogRecord attribute, e.g.
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
Initial root logger like logging.basicConfig