Table of Contents

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

constructArguments ConstructArgument[]

Logger(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Logger(CreationData data)

Parameters

data CreationData

Logger(LoggerHandle)

protected Logger(LoggerHandle handle)

Parameters

handle LoggerHandle

Fields

LevelPropertyDefinition

public static readonly Property<LoggerLogLevel, Logger> LevelPropertyDefinition

Field Value

Property<LoggerLogLevel, Logger>

MaxBodySizePropertyDefinition

public static readonly Property<int, Logger> MaxBodySizePropertyDefinition

Field Value

Property<int, Logger>

Properties

Level

public LoggerLogLevel Level { get; set; }

Property Value

LoggerLogLevel

MaxBodySize

public int MaxBodySize { get; set; }

Property Value

int

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetMaxBodySize()

public int GetMaxBodySize()

Returns

int

New(LoggerLogLevel)

public static Logger New(LoggerLogLevel level)

Parameters

level LoggerLogLevel

Returns

Logger

NewFromPointer(nint, bool)

Creates a new managed Logger instance for a given pointer.

public static Logger NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Logger

NewWithProperties(ConstructArgument[])

Creates a new Logger and sets the properties specified by the construct arguments.

public static Logger NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Logger

SetMaxBodySize(int)

public void SetMaxBodySize(int maxBodySize)

Parameters

maxBodySize int

SetPrinter(LoggerPrinter)

public void SetPrinter(LoggerPrinter printer)

Parameters

printer LoggerPrinter

SetRequestFilter(LoggerFilter)

public void SetRequestFilter(LoggerFilter requestFilter)

Parameters

requestFilter LoggerFilter

SetResponseFilter(LoggerFilter)

public void SetResponseFilter(LoggerFilter responseFilter)

Parameters

responseFilter LoggerFilter