lib/refile/custom_logger.rb in leifcr-refile-0.7.0 vs lib/refile/custom_logger.rb in leifcr-refile-0.7.1

- old
+ new

@@ -1,10 +1,11 @@ require "rack/body_proxy" module Refile # @api private class CustomLogger - LOG_FORMAT = %(%s: [%s] %s "%s%s" %d %0.1fms\n) + # LOG_FORMAT = %(%s: [%s] %s "%s%s" %d %0.1fms\n) + LOG_FORMAT= %({"invoker": "%s", "time": "%s", "method": "%s", "path": "%s", "params": "%s", "status": %d, "duration": %0.1f}) def initialize(app, prefix, logger_proc) @app = app @prefix = prefix @logger_proc = logger_proc