class PLogger
Public Class Methods
new(log_path, err_log_path)
click to toggle source
# File lib/sarchive/plogger.rb, line 6 def initialize(log_path, err_log_path) FileUtils.mkdir_p(File::dirname(log_path)) FileUtils.mkdir_p(File::dirname(err_log_path)) @stdout = Logger.new STDOUT @stderr = Logger.new STDERR @log = Logger.new(log_path, 'monthly') @elog = Logger.new(err_log_path, 'monthly') end