Module: EasyLogging
- Defined in:
- lib/easy_logging.rb,
lib/easy_logging/version.rb
Constant Summary collapse
- VERSION =
"0.3.0"
Class Attribute Summary collapse
-
.formatter ⇒ Object
Returns the value of attribute formatter.
-
.level ⇒ Object
Returns the value of attribute level.
-
.log_destination ⇒ Object
Returns the value of attribute log_destination.
Instance Method Summary collapse
Class Attribute Details
.formatter ⇒ Object
Returns the value of attribute formatter.
13 14 15 |
# File 'lib/easy_logging.rb', line 13 def formatter @formatter end |
.level ⇒ Object
Returns the value of attribute level.
13 14 15 |
# File 'lib/easy_logging.rb', line 13 def level @level end |
.log_destination ⇒ Object
Returns the value of attribute log_destination.
13 14 15 |
# File 'lib/easy_logging.rb', line 13 def log_destination @log_destination end |
Instance Method Details
#initialize ⇒ Object
7 8 9 10 11 |
# File 'lib/easy_logging.rb', line 7 def initialize super # Initialize instance level logger at the time of instance creation logger end |
#logger ⇒ Object
19 20 21 |
# File 'lib/easy_logging.rb', line 19 def logger @logger ||= EasyLogging.logger_for(self.class.name) end |