Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### BELONGS IN config/init.rb
- #
- # ==== Set up your basic configuration
- #
- LoggerProxy.setup Logger do |logger, (file, level, delimiter, auto_flush)|
- logger = logger.new(STDOUT) # file, level, delimiter, auto_flush
- logger.formatter = proc{|s,t,p,m|"%5s [%s] (%s : %s) %s :: %s\n" % [s, t.strftime("%Y-%m-%d %H:%M:%S"), $$, Thread.current.object_id, p, m]}
- logger.level = Logger.const_get(level.to_s.upcase.to_sym)
- logger.progname = "ScoutMerb"
- logger
- end
Add Comment
Please, Sign In to add comment