Module: LoggingWrapper
- Included in:
- ActionsPluginBase, GitVcsClient::Git
- Defined in:
- lib/core/logging_wrapper.rb
Overview
Mixin for using logger
Instance Method Summary collapse
- #dbg(message) ⇒ Object
- #err(message) ⇒ Object
- #ext(message, status = 0) ⇒ Object
- #ftl(message, status = 1) ⇒ Object
- #inf(message) ⇒ Object
- #wrn(message) ⇒ Object
Instance Method Details
#dbg(message) ⇒ Object
3 4 5 |
# File 'lib/core/logging_wrapper.rb', line 3 def dbg() @logger.dbg end |
#err(message) ⇒ Object
15 16 17 |
# File 'lib/core/logging_wrapper.rb', line 15 def err() @logger.err end |
#ext(message, status = 0) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/core/logging_wrapper.rb', line 24 def ext(, status = 0) if status == 0 @logger.inf else @logger.err end exit status end |
#ftl(message, status = 1) ⇒ Object
19 20 21 22 |
# File 'lib/core/logging_wrapper.rb', line 19 def ftl(, status = 1) @logger.ftl exit status end |
#inf(message) ⇒ Object
7 8 9 |
# File 'lib/core/logging_wrapper.rb', line 7 def inf() @logger.inf end |
#wrn(message) ⇒ Object
11 12 13 |
# File 'lib/core/logging_wrapper.rb', line 11 def wrn() @logger.wrn end |