Sha256: 0d00767388f023d999e2abfb72a1fe453633b53a9fbde64807ff6be23f1b4d87

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

require 'logger'

module APN
  class Log
    def initialize(options = {})
    end

    def write
      @logger ||= set_logger
    end

    def set_logger
      @logger = Logger.new(@logfile) if logfile
    end

    def logfile
      @logfile = APN.config.logfile
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apn-1.0.2 lib/apn/log.rb
apn-1.0.1 lib/apn/log.rb
apn-1.0.0 lib/apn/log.rb