Version 3.3.1.2

DebugContext class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class DebugContext
Defines a context for debugging and logging during serialization and deserialization. This class is thread-safe.
Inheritance
  • System.Object
  • DebugContext

Constructors

DebugContext()
public DebugContext()

Properties

ErrorHandlingPolicy
The error handling policy to use.
public ErrorHandlingPolicy ErrorHandlingPolicy { get; set; }
Logger
The logger to use for logging messages.
public ILogger Logger { get; set; }
LoggingPolicy
The logging policy to use.
public LoggingPolicy LoggingPolicy { get; set; }

Methods

LogError(String)
Log an error. Depending on the logging policy and error handling policy, this message may be suppressed or result in an exception being thrown.
public void LogError(string message)
Parameters
System.String message

LogException(Exception)
Log an exception. Depending on the logging policy and error handling policy, this message may be suppressed or result in an exception being thrown.
public void LogException(Exception exception)
Parameters
System.Exception exception

LogWarning(String)
Log a warning. Depending on the logging policy and error handling policy, this message may be suppressed or result in an exception being thrown.
public void LogWarning(string message)
Parameters
System.String message

ResetToDefault()
public void ResetToDefault()