Class: Temporalio::Runtime::LoggingFilterOptions

Inherits:
Struct
  • Object
show all
Defined in:
lib/temporalio/runtime.rb

Overview

Logging filter options for Core.

Instance Attribute Summary collapse

Instance Attribute Details

#core_level'TRACE', ...

Returns Log level for Core log messages, default is ‘WARN’.

Returns:

  • ('TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR')

    Log level for Core log messages, default is ‘WARN’.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/temporalio/runtime.rb', line 79

LoggingFilterOptions = Struct.new(
  :core_level,
  :other_level,
  keyword_init: true
) do
  # @!visibility private
  def initialize(**kwargs)
    # @type var kwargs: untyped
    kwargs[:core_level] = 'WARN' unless kwargs.key?(:core_level)
    kwargs[:other_level] = 'ERROR' unless kwargs.key?(:other_level)
    super
  end

  # @!visibility private
  def _to_bridge
    # @type self: LoggingFilterOptions
    "#{other_level},temporal_sdk_core=#{core_level},temporal_client=#{core_level},temporal_sdk=#{core_level}"
  end
end

#other_level'TRACE', ...

Returns Log level for other Rust log messages, default is ‘WARN’.

Returns:

  • ('TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR')

    Log level for other Rust log messages, default is ‘WARN’.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/temporalio/runtime.rb', line 79

LoggingFilterOptions = Struct.new(
  :core_level,
  :other_level,
  keyword_init: true
) do
  # @!visibility private
  def initialize(**kwargs)
    # @type var kwargs: untyped
    kwargs[:core_level] = 'WARN' unless kwargs.key?(:core_level)
    kwargs[:other_level] = 'ERROR' unless kwargs.key?(:other_level)
    super
  end

  # @!visibility private
  def _to_bridge
    # @type self: LoggingFilterOptions
    "#{other_level},temporal_sdk_core=#{core_level},temporal_client=#{core_level},temporal_sdk=#{core_level}"
  end
end