Class: Smplkit::Logging::LoggerChangeEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/smplkit/logging/client.rb

Overview

Fired once per managed logger whose effective level the SDK just applied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idString

Returns The affected logger’s normalized id.

Returns:

  • (String)

    The affected logger’s normalized id.



97
98
99
100
101
102
# File 'lib/smplkit/logging/client.rb', line 97

LoggerChangeEvent = Struct.new(:id, :level, :source, keyword_init: true) do
  def ==(other)
    other.is_a?(LoggerChangeEvent) &&
      id == other.id && level == other.level && source == other.source
  end
end

#levelString

Returns The newly-applied effective smplkit level string (e.g. “INFO”, “DEBUG”) — the same value the resolution algorithm returns.

Returns:

  • (String)

    The newly-applied effective smplkit level string (e.g. “INFO”, “DEBUG”) — the same value the resolution algorithm returns.



97
98
99
100
101
102
# File 'lib/smplkit/logging/client.rb', line 97

LoggerChangeEvent = Struct.new(:id, :level, :source, keyword_init: true) do
  def ==(other)
    other.is_a?(LoggerChangeEvent) &&
      id == other.id && level == other.level && source == other.source
  end
end

#sourceString

Returns Short string identifying the trigger — typically “websocket” or “manual” (a refresh call).

Returns:

  • (String)

    Short string identifying the trigger — typically “websocket” or “manual” (a refresh call).



97
98
99
100
101
102
# File 'lib/smplkit/logging/client.rb', line 97

LoggerChangeEvent = Struct.new(:id, :level, :source, keyword_init: true) do
  def ==(other)
    other.is_a?(LoggerChangeEvent) &&
      id == other.id && level == other.level && source == other.source
  end
end

Instance Method Details

#==(other) ⇒ Object



98
99
100
101
# File 'lib/smplkit/logging/client.rb', line 98

def ==(other)
  other.is_a?(LoggerChangeEvent) &&
    id == other.id && level == other.level && source == other.source
end