Sha256: fdda3d7f6c593abbdb46e62cae9e1915b80013d1588fea9663c134fd6d3a90cc
Contents?: true
Size: 439 Bytes
Versions: 5
Compression:
Stored size: 439 Bytes
Contents
require File.join(File.dirname(__FILE__), '/examples_helper') puts "\n<<<#{File.basename(__FILE__, ".rb")}>>> \n".upcase TaggedLogger.rules do info /.*/, :to => Logger.new(STDOUT) end class A def foo logger.warn "WARNING message" #will be printed since treshold is set to 'info' end logger.debug "DEBUG message" #will not be printed since we have only 'info' rule end logger.info("INFO message") #will be printed A.new.foo
Version data entries
5 entries across 5 versions & 1 rubygems