mirror of
https://github.com/plashchynski/crono.git
synced 2026-05-26 01:39:17 +02:00
Add custom Logger
This commit is contained in:
@@ -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
|
||||
@@ -1,2 +0,0 @@
|
||||
module Crono
|
||||
end
|
||||
Reference in New Issue
Block a user