Sha256: 550dd1e092ab8a72b9649e370821b22e13df96f3ad6f57382bfc5d98d554a73e

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module Mako
  class MakoLogger < Logger
    def initialize(logdev, shift_age = 0, shift_size = 1_048_576)
      super(logdev, shift_age, shift_size)
      self.formatter = proc do |_severity, _datetime, _progname, msg|
        "#{msg}\n"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mako_rss-0.2.5 lib/mako/mako_logger.rb
mako_rss-0.2.3 lib/mako/mako_logger.rb
mako_rss-0.2.2 lib/mako/mako_logger.rb
mako_rss-0.2.1 lib/mako/mako_logger.rb
mako_rss-0.2.0 lib/mako/mako_logger.rb
mako_rss-0.1.0 lib/mako/mako_logger.rb