Class LogForwardingOptions
- Namespace
- Temporalio.Runtime
- Assembly
- Temporalio.dll
Log forwarding options to send Core logs to a logger.
public class LogForwardingOptions : ICloneable
- Inheritance
-
LogForwardingOptions
- Implements
- Inherited Members
Constructors
LogForwardingOptions()
Initializes a new instance of the LogForwardingOptions class.
public LogForwardingOptions()
LogForwardingOptions(ILogger)
Initializes a new instance of the LogForwardingOptions class.
public LogForwardingOptions(ILogger logger)
Parameters
logger
ILoggerLogger to send to.
Properties
IncludeFields
Gets or sets a value indicating whether additional fields are parsed and appended to the log message. Default is true.
public bool IncludeFields { get; set; }
Property Value
Logger
Gets or sets the logger that logs will be forwarded to. This is required.
public ILogger? Logger { get; set; }
Property Value
Methods
Clone()
Create a shallow copy of these options.
public virtual object Clone()
Returns
- object
A shallow copy of these options and any transitive options fields.