Class: Taglog
- Inherits:
-
Module
- Object
- Module
- Taglog
- Defined in:
- lib/taglog.rb,
lib/taglog/version.rb
Overview
Wrap a class that has ‘#logger` method to insert tag without over defining actual logger’s methods.
Defined Under Namespace
Classes: Proxy
Constant Summary collapse
- LEVELS =
Logger::Severity.constants.map(&:downcase)
- VERSION =
"0.0.1"
Instance Method Summary collapse
- #extended(base) ⇒ Object
-
#initialize(tag) ⇒ Taglog
constructor
A new instance of Taglog.
Constructor Details
#initialize(tag) ⇒ Taglog
Returns a new instance of Taglog.
10 11 12 |
# File 'lib/taglog.rb', line 10 def initialize(tag) @tag = tag end |