Sha256: 245c5d592755fbde28fff453f3f6a418076dd5b8e0a40ed89635ae6eb48ba525

Contents?: true

Size: 265 Bytes

Versions: 7

Compression:

Stored size: 265 Bytes

Contents

module LocalPac
  class Logger
    def initialize(path)
      FileUtils.mkdir_p File.dirname(path)
      @logger = ::Logger.new(path)
    end

    def write(*args, &block)
      @logger.<<(*args, &block)
    end

    private

    def default_path
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
local_pac-0.0.7 lib/local_pac/logger.rb
local_pac-0.0.6 lib/local_pac/logger.rb
local_pac-0.0.5 lib/local_pac/logger.rb
local_pac-0.0.4 lib/local_pac/logger.rb
local_pac-0.0.3 lib/local_pac/logger.rb
local_pac-0.0.2 lib/local_pac/logger.rb
local_pac-0.0.1 lib/local_pac/logger.rb