Module: PaulBunyan::TaggedLogging
- Defined in:
- lib/paul_bunyan/tagged_logging.rb
Instance Method Summary collapse
- #clear_tags! ⇒ Object
- #flush ⇒ Object
- #pop_tags(count = 1) ⇒ Object
- #push_tags(*args) ⇒ Object
- #tagged(*tags) ⇒ Object
Instance Method Details
#clear_tags! ⇒ Object
11 12 13 |
# File 'lib/paul_bunyan/tagged_logging.rb', line 11 def formatter. end |
#flush ⇒ Object
19 20 21 22 |
# File 'lib/paul_bunyan/tagged_logging.rb', line 19 def flush super if defined?(super) end |
#pop_tags(count = 1) ⇒ Object
7 8 9 |
# File 'lib/paul_bunyan/tagged_logging.rb', line 7 def (count = 1) formatter.(count) end |
#push_tags(*args) ⇒ Object
3 4 5 |
# File 'lib/paul_bunyan/tagged_logging.rb', line 3 def (*args) formatter.(*args) end |
#tagged(*tags) ⇒ Object
15 16 17 |
# File 'lib/paul_bunyan/tagged_logging.rb', line 15 def tagged(*) formatter.tagged(*) { yield self } end |