Guest User

Untitled

a guest
Feb 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ### BELONGS IN config/init.rb
  2.  
  3. #
  4. # ==== Set up your basic configuration
  5. #
  6.  
  7. LoggerProxy.setup Logger do |logger, (file, level, delimiter, auto_flush)|
  8. logger = logger.new(STDOUT) # file, level, delimiter, auto_flush
  9. 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]}
  10. logger.level = Logger.const_get(level.to_s.upcase.to_sym)
  11. logger.progname = "ScoutMerb"
  12. logger
  13. end
Add Comment
Please, Sign In to add comment