Sha256: 34b504a8b5aaa9709038b647dd016397c72594a4d071838450e2a54f98a43a73
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
require 'logger' module Kryten::Lawger attr_accessor :logger def log_path "log/#{name}.log" end def log(level = :debug, message) default_log_format logger.progname = name logger.send(level, message ) end def logger unless @logger @logger = Logger.new(log_path) default_log_format end @logger end def default_log_format nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kryten-0.3.1 | lib/kryten/lawger.rb |
kryten-0.3.0 | lib/kryten/lawger.rb |