Sha256: 9c7bfa9300afe54d697c07d3bfb10dadb35cfe2a4ad5cf86d747a8dab783920f
Contents?: true
Size: 550 Bytes
Versions: 12
Compression:
Stored size: 550 Bytes
Contents
$lib = File.expand_path('../', File.dirname(__FILE__)) require "logger" class ZLogger attr_accessor :logger def initialize(baseExecutePath) @logger = Logger.new("#{baseExecutePath}/execute.log") end def logError(message) result = "#{caller[0]}: #{message}" logger.error(result) end def logWarn(message) result = "#{caller[0]}: #{message}" logger.warn(result) end def logInfo(message) result = "#{caller[0]}: #{message}" logger.info(result) end end
Version data entries
12 entries across 12 versions & 1 rubygems