Class: Logput::Adapters::Logger
- Defined in:
- lib/logput/adapters/logger.rb
Overview
Logger Adapter
Class Method Summary collapse
Instance Method Summary collapse
-
#path ⇒ String
Path.
Methods inherited from Base
#initialize, #path_override, register
Constructor Details
This class inherits a constructor from Logput::Adapters::Base
Class Method Details
.handles?(logger) ⇒ Boolean
11 12 13 14 |
# File 'lib/logput/adapters/logger.rb', line 11 def self.handles?(logger) return false unless logger logger.is_a? ::Logger end |
Instance Method Details
#path ⇒ String
Returns path.
17 18 19 20 |
# File 'lib/logput/adapters/logger.rb', line 17 def path return path_override if path_override @logger.instance_variable_get(:@logdev).filename end |