lib/tlogger.rb in tlogger-0.7.0 vs lib/tlogger.rb in tlogger-0.8.0

- old
+ new

@@ -230,24 +230,26 @@ tag << find_caller end args[0] = "[#{tag.join}] #{args[0]}" @tlogger.send(mtd,*args,&block) end - elsif TloggerConf.is_auto_tag_on? - intDebug("auto_tag is on...") - args = tag_class(*args) - @tlogger.send(mtd,*args,&block) elsif TloggerConf.is_tag_active?(@tag) intDebug("Tagged output...") tag = [] tag << @tag if TloggerConf.instance.is_show_source? tag << " - " tag << find_caller end args[0] = "[#{tag.join}] #{args[0]}" @tlogger.send(mtd,*args,&block) + + elsif TloggerConf.is_auto_tag_on? + intDebug("auto_tag is on...") + args = tag_class(*args) + @tlogger.send(mtd,*args,&block) + end end else @@ -293,9 +295,10 @@ if sp.length > 1 msg = "/#{sp[-2]}/#{sp[-1]}" else msg = sp[-1] end + msg #wd = Dir.getwd #indx = @cal =~ /#{wd}/ #if indx != nil