Module: RTP::Logging
Overview
Note:
For more information, please read the Standard library Logger documentation.
This module handles logging functionality.
Logging functionality uses the Standard library’s Logger class. To properly handle progname, which inside the RTP module is simply “RTP”, in all cases, we use an implementation with a proxy class.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Inclusion hook to make the ClassMethods available to whatever includes the Logging module, i.e.
Instance Method Summary collapse
-
#logger ⇒ ProxyLogger
A logger object getter.
Class Method Details
.included(base) ⇒ Object
Inclusion hook to make the ClassMethods available to whatever includes the Logging module, i.e. the RTP module.
38 39 40 |
# File 'lib/rtp-connect/logging.rb', line 38 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#logger ⇒ ProxyLogger
A logger object getter. Forwards the call to the logger class method of the Logging module.
146 147 148 |
# File 'lib/rtp-connect/logging.rb', line 146 def logger self.class.logger end |