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

Version Path
ZReviewTender-1.3.8 lib/ZLogger.rb
ZReviewTender-1.3.7 lib/ZLogger.rb
ZReviewTender-1.3.6 lib/ZLogger.rb
ZReviewTender-1.3.5 lib/ZLogger.rb
ZReviewTender-1.3.4 lib/ZLogger.rb
ZReviewTender-1.3.3 lib/ZLogger.rb
ZReviewTender-1.3.2 lib/ZLogger.rb
ZReviewTender-1.3.1 lib/ZLogger.rb
ZReviewTender-1.3.0 lib/ZLogger.rb
ZReviewTender-1.2.8 lib/ZLogger.rb
ZReviewTender-1.2.7 lib/ZLogger.rb
ZReviewTender-1.2.6 lib/ZLogger.rb