Sha256: fc7563f3d8da8d1aca68f0631de2098e2d79bbd6f19cf63af05d1dd591e7a3ea
Contents?: true
Size: 317 Bytes
Versions: 3
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true require 'logger' module Dropcaster module Logging attr_writer :logger def logger @logger ||= NullLogger.new end end class LogFormatter < Logger::Formatter def call(severity, time, program_name, message) "#{severity}: #{message}\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dropcaster-1.2.0 | lib/dropcaster/log_formatter.rb |
dropcaster-1.1.0 | lib/dropcaster/log_formatter.rb |
dropcaster-1.0.0 | lib/dropcaster/log_formatter.rb |