Class: Smplkit::Logging::LoggerChangeEvent
- Inherits:
-
Struct
- Object
- Struct
- Smplkit::Logging::LoggerChangeEvent
- Defined in:
- lib/smplkit/logging/client.rb
Overview
Fired once per managed logger whose effective level the SDK just applied.
Instance Attribute Summary collapse
-
#id ⇒ String
The affected logger’s normalized id.
-
#level ⇒ String
The newly-applied effective smplkit level string (e.g. “INFO”, “DEBUG”) — the same value the resolution algorithm returns.
-
#source ⇒ String
Short string identifying the trigger — typically “websocket” or “manual” (a
refreshcall).
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ String
Returns 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 |
#level ⇒ String
Returns 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 |
#source ⇒ String
Returns 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 |