Class Logger
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public sealed class Logger : Object, SessionFeature, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Logger
- Implements
- Inherited Members
Constructors
Logger(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Logger(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Logger(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Logger(CreationData data)
Parameters
dataCreationData
Logger(LoggerHandle)
protected Logger(LoggerHandle handle)
Parameters
handleLoggerHandle
Fields
LevelPropertyDefinition
public static readonly Property<LoggerLogLevel, Logger> LevelPropertyDefinition
Field Value
MaxBodySizePropertyDefinition
public static readonly Property<int, Logger> MaxBodySizePropertyDefinition
Field Value
Properties
Level
public LoggerLogLevel Level { get; set; }
Property Value
MaxBodySize
public int MaxBodySize { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetMaxBodySize()
public int GetMaxBodySize()
Returns
New(LoggerLogLevel)
public static Logger New(LoggerLogLevel level)
Parameters
levelLoggerLogLevel
Returns
NewFromPointer(nint, bool)
Creates a new managed Logger instance for a given pointer.
public static Logger NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Logger and sets the properties specified by the construct arguments.
public static Logger NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaxBodySize(int)
public void SetMaxBodySize(int maxBodySize)
Parameters
maxBodySizeint
SetPrinter(LoggerPrinter)
public void SetPrinter(LoggerPrinter printer)
Parameters
printerLoggerPrinter
SetRequestFilter(LoggerFilter)
public void SetRequestFilter(LoggerFilter requestFilter)
Parameters
requestFilterLoggerFilter
SetResponseFilter(LoggerFilter)
public void SetResponseFilter(LoggerFilter responseFilter)
Parameters
responseFilterLoggerFilter