Class: Scm::Workflow::Utils::Logging
- Inherits:
-
Object
- Object
- Scm::Workflow::Utils::Logging
- Includes:
- Singleton
- Defined in:
- lib/utils/logging.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Logging
constructor
A new instance of Logging.
Constructor Details
#initialize ⇒ Logging
Returns a new instance of Logging.
26 27 28 29 30 |
# File 'lib/utils/logging.rb', line 26 def initialize logsettings = Scm::Workflow::Utils::LogSettings.instance @logger = Logger.new(logsettings.output) @logger.level = logsettings.level end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
25 26 27 |
# File 'lib/utils/logging.rb', line 25 def logger @logger end |