Add custom Logger

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:13:40 +02:00
parent 2ce9db45db
commit 4c59804472
5 changed files with 31 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
module Crono
class Logger < ::Logger
include Singleton
def initialize
super(Crono.config.daemonize ? Crono.config.logfile : STDOUT)
self.level = Logger::DEBUG
end
end
def self.logger
Logger.instance
end
end
-2
View File
@@ -1,2 +0,0 @@
module Crono
end