Module: DICOM::Logging
- Defined in:
- lib/dicom/logging.rb
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 DICOM module is simply “DICOM”, 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 DICOM module.
38 39 40 |
# File 'lib/dicom/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.
147 148 149 |
# File 'lib/dicom/logging.rb', line 147 def logger self.class.logger end |