Module: Smplkit::Logging::Normalize Private

Defined in:
lib/smplkit/logging/normalize.rb,
sig/smplkit/logging.rbs

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Logger name normalization.

Replace / with ., replace : with ., lowercase everything.

Class Method Summary collapse

Class Method Details

.normalize_logger_name(name) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • (String)

Returns:

  • (String)


13
14
15
# File 'lib/smplkit/logging/normalize.rb', line 13

def normalize_logger_name(name)
  name.to_s.tr("/:", "..").downcase
end