Sha256: 8f3963bb7495c48be2e3aaa13249134fcaad12bc3744c4fe8ae6df06a4ef26e0
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require 'logger' module RubyApp require 'ruby_app/mixins/delegate' class Log < ::Logger extend RubyApp::Mixins::Delegate def self.get @@_logger end def self.open(path) directory = File.dirname(path) Dir.mkdir(directory) unless File.exists?(directory) @@_logger = RubyApp::Log.new(path) @@_logger.debug("#{self}##{__method__} path=#{path.inspect}") end def self.close @@_logger.close @@_logger = nil end private def initialize(path) super(path) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.0.8 | lib/ruby_app/log.rb |
RubyApp-0.0.7 | lib/ruby_app/log.rb |
RubyApp-0.0.6 | lib/ruby_app/log.rb |