Clogger是一个为Rack框架提供定制日志格式的工具,支持像Nginx服务器中的log_format一样的格式配置。
示例代码:
# ENV['CLOGGER_PURE'] = '1' # uncomment to disable C extensionrequire "clogger"use Clogger, :format => :Combined, :path => "/path/to/log", :reentrant => truerun YourApplication.newClogger是一个为Rack框架提供定制日志格式的工具,支持像Nginx服务器中的log_format一样的格式配置。
示例代码:
# ENV['CLOGGER_PURE'] = '1' # uncomment to disable C extensionrequire "clogger"use Clogger, :format => :Combined, :path => "/path/to/log", :reentrant => truerun YourApplication.new
评论