Sha256: c0f86f1eb8fa681ad1abb6288d8549eaccbc4e89c98cd35fe915bdcb4ab188fa

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

require 'rubygems'
require 'tagged_logger'
require 'logger'

puts "\n<<<#{File.basename(__FILE__, ".rb")}>>> \n".upcase

TaggedLogger.rules do
  format { |level, tag, msg| "#{level}-#{tag}: #{msg}\n"}
  info /.*/, :to => Logger.new(STDOUT)
end

logger.info("message")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tagged_logger-0.4.5 examples/changing_format.rb
tagged_logger-0.4.2 examples/changing_format.rb
tagged_logger-0.4.0 examples/changing_format.rb
tagged_logger-0.3.3 examples/changing_format.rb
tagged_logger-0.3.2 examples/changing_format.rb
tagged_logger-0.3.1 examples/changing_format.rb
tagged_logger-0.3.0 examples/changing_format.rb