lib/chillout/prefixed_logger.rb in chillout-0.5.3 vs lib/chillout/prefixed_logger.rb in chillout-0.5.4
- old
+ new
@@ -7,10 +7,10 @@
@logger = logger
end
[:error, :fatal, :warn, :info, :debug].each do |method_name|
define_method method_name do |message|
- @logger.send(method_name, "[Chillout] #{message}")
+ @logger.send(method_name, "[#{@prefix}] #{message}")
end
end
end
end