Class: Prefab::InternalLogger
- Inherits:
-
StaticLogger
- Object
- Logger
- StaticLogger
- Prefab::InternalLogger
- Defined in:
- lib/prefab/internal_logger.rb
Direct Known Subclasses
Constant Summary collapse
- INTERNAL_PREFIX =
'cloud.prefab.client'
Instance Method Summary collapse
-
#initialize(path) ⇒ InternalLogger
constructor
A new instance of InternalLogger.
Methods inherited from StaticLogger
#debug, #error, #fatal, #info, #warn
Constructor Details
#initialize(path) ⇒ InternalLogger
Returns a new instance of InternalLogger.
7 8 9 10 11 12 13 14 |
# File 'lib/prefab/internal_logger.rb', line 7 def initialize(path) if path.is_a?(Class) path_string = path.name.split('::').last.downcase else path_string = path end super("#{INTERNAL_PREFIX}.#{path_string}") end |