Class: Prefab::InternalLogger

Inherits:
StaticLogger show all
Defined in:
lib/prefab/internal_logger.rb

Direct Known Subclasses

SseLogger

Constant Summary collapse

INTERNAL_PREFIX =
'cloud.prefab.client'

Instance Method Summary collapse

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