# 
# basic use case
#

class Cls

  # to get the with_tag()
  include Tlogger
  
  def initialize
    @log = Tlogger.new(STDOUT)
    @log.tag = :cls
  end

  def bark
    @log.debug "wuf wof"
  end

  def say
    with_tag(:say) do
      @log.debug "inside say"
      puts "Say hello world!"
      @log.warn "after hello!"
    end  

    @log.error "Error here..."
  end
end

#if $0 == __FILE__

#Tlogger::TloggerConf.auto_tag_on
#Tlogger::TloggerConf.disable_all_tags
#Tlogger::TloggerConf.disable_tag([:cls])

c = Cls.new
c.bark
c.say

#end