diff --git a/prometheus_pgbouncer_exporter/cli.py b/prometheus_pgbouncer_exporter/cli.py index b81a5da..6ee0393 100644 --- a/prometheus_pgbouncer_exporter/cli.py +++ b/prometheus_pgbouncer_exporter/cli.py @@ -44,7 +44,7 @@ def main(): # Init logger logHandler = logging.FileHandler(args.log_file) if args.log_file is not "stdout" else logging.StreamHandler() - formatter = jsonlogger.JsonFormatter("(asctime) (levelname) (message)", datefmt="%Y-%m-%d %H:%M:%S") + formatter = jsonlogger.JsonFormatter("%(message)%(levelname)%(name)%(asctime)") logHandler.setFormatter(formatter) logging.getLogger().addHandler(logHandler) logging.getLogger().setLevel(args.log_level)