Class: Handiv::Logger
- Inherits:
-
Object
- Object
- Handiv::Logger
- Defined in:
- lib/handiv/logger.rb
Constant Summary collapse
- LOG_PREFIX =
'** [Handiv] '.freeze
- LOG_LEVELS =
[:fatal, :error, :warn, :info, :debug].freeze
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Logger
constructor
A new instance of Logger.
- #logger ⇒ Object
Constructor Details
#initialize(client) ⇒ Logger
Returns a new instance of Logger.
19 20 21 |
# File 'lib/handiv/logger.rb', line 19 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/handiv/logger.rb', line 5 def client @client end |
Instance Method Details
#logger ⇒ Object
23 24 25 |
# File 'lib/handiv/logger.rb', line 23 def logger custom_logger || default_logger end |