Class: Temporalio::ScopedLogger::LogMessage
- Inherits:
-
Object
- Object
- Temporalio::ScopedLogger::LogMessage
- Defined in:
- lib/temporalio/scoped_logger.rb
Overview
Scoped log message wrapping original log message.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Original log message.
-
#scoped_values ⇒ Object
readonly
Scoped values.
Instance Method Summary collapse
-
#inspect ⇒ String
Message with scoped values appended.
Instance Attribute Details
#message ⇒ Object (readonly)
Returns Original log message.
78 79 80 |
# File 'lib/temporalio/scoped_logger.rb', line 78 def @message end |
#scoped_values ⇒ Object (readonly)
Returns Scoped values.
81 82 83 |
# File 'lib/temporalio/scoped_logger.rb', line 81 def scoped_values @scoped_values end |
Instance Method Details
#inspect ⇒ String
Returns Message with scoped values appended.
90 91 92 93 |
# File 'lib/temporalio/scoped_logger.rb', line 90 def inspect = .is_a?(String) ? : .inspect "#{} #{scoped_values}" end |