lib/adhearsion/logging.rb in adhearsion-2.0.0.beta1 vs lib/adhearsion/logging.rb in adhearsion-2.0.0.rc1
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: utf-8
+
require 'logging'
module Adhearsion
module Logging
@@ -9,17 +11,17 @@
class << self
::Logging.color_scheme 'bright',
:levels => {
+ :debug => :magenta,
:info => :green,
:warn => :yellow,
:error => :red,
:fatal => [:white, :on_red]
},
- :date => :blue,
- :logger => :cyan,
- :message => :magenta
+ :date => [:bold, :blue],
+ :logger => :cyan
def adhearsion_pattern
'[%d] %-5l %c: %m\n'
end