Sha256: 0922846baec3a305108504b0e1fc7e0be0a2f98369a01ba71700874a9aa4d2a4
Contents?: true
Size: 346 Bytes
Versions: 5
Compression:
Stored size: 346 Bytes
Contents
module Coupler class Logger < Delegator include Singleton def initialize log_path = Base.settings.log_path Dir.mkdir(log_path) if !File.exist?(log_path) @logger = ::Logger.new(File.join(log_path, "#{Base.settings.environment}.log")) super(@logger) end def __getobj__ @logger end end end
Version data entries
5 entries across 5 versions & 1 rubygems