Table of Contents

Delegate LoggerProc

Namespace
SharpHook.Native
Assembly
SharpHook.dll

Represents a function which is called when a logging event occurs.

public delegate void LoggerProc(LogLevel level, nint userData, nint format, nint args)

Parameters

level LogLevel

The log level.

userData nint

The data that was passed to SetLoggerProc(LoggerProc?, nint). Usually should not be used.

format nint

The format of the log message.

args nint

The arguments of the log message.

Constructors

LoggerProc(object, nint)

public LoggerProc(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(LogLevel, nint, nint, nint, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(LogLevel level, nint userData, nint format, nint args, AsyncCallback callback, object @object)

Parameters

level LogLevel
userData nint
format nint
args nint
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(LogLevel, nint, nint, nint)

public virtual void Invoke(LogLevel level, nint userData, nint format, nint args)

Parameters

level LogLevel
userData nint
format nint
args nint

See Also