lib/lumberjack/log_entry.rb in lumberjack-1.1.1 vs lib/lumberjack/log_entry.rb in lumberjack-1.2.0
- old
+ new
@@ -47,9 +47,14 @@
tags[UNIT_OF_WORK_ID] = value
else
@tags = { UNIT_OF_WORK_ID => value }
end
end
+
+ # Return the tag with the specified name.
+ def tag(name)
+ tags[name.to_s] if tags
+ end
private
def tags_to_s
tags_string = String.new