Class: Temporalio::Runtime::LoggingOptions
- Inherits:
-
Object
- Object
- Temporalio::Runtime::LoggingOptions
- Defined in:
- lib/temporalio/runtime.rb
Overview
Logging options for runtime telemetry.
Instance Attribute Summary collapse
-
#log_filter ⇒ LoggingFilterOptions, String
Logging filter for Core, default is new LoggingFilterOptions with no parameters.
Instance Method Summary collapse
-
#initialize(log_filter: LoggingFilterOptions.new) ⇒ LoggingOptions
constructor
Create logging options.
Constructor Details
#initialize(log_filter: LoggingFilterOptions.new) ⇒ LoggingOptions
Create logging options
61 62 63 |
# File 'lib/temporalio/runtime.rb', line 61 def initialize(log_filter: LoggingFilterOptions.new) super end |
Instance Attribute Details
#log_filter ⇒ LoggingFilterOptions, String
Returns Logging filter for Core, default is new Temporalio::Runtime::LoggingFilterOptions with no parameters.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/temporalio/runtime.rb', line 57 class LoggingOptions # Create logging options # # @param log_filter [LoggingFilterOptions, String] Logging filter for Core. def initialize(log_filter: LoggingFilterOptions.new) super end # @!visibility private def _to_bridge # @type self: LoggingOptions Internal::Bridge::Runtime::LoggingOptions.new( log_filter: if log_filter.is_a?(String) log_filter elsif log_filter.is_a?(LoggingFilterOptions) log_filter._to_bridge else raise 'Log filter must be string or LoggingFilterOptions' end ) end end |