Sha256: 3a6e2ce773577bba7fbcc3e15b69147a0c0cdf7baf4e2fb46315c6fc35d6f67c

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

require File.join(File.dirname(__FILE__), '/examples_helper')

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

5 entries across 5 versions & 1 rubygems

Version Path
tagged_logger-0.5.6 examples/changing_format.rb
tagged_logger-0.5.5 examples/changing_format.rb
tagged_logger-0.5.1 examples/changing_format.rb
tagged_logger-0.5.0 examples/changing_format.rb
tagged_logger-0.4.6 examples/changing_format.rb