Table of Contents

Struct ILogger

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

This type represents a pointer to an unmanaged open.mp ILogger interface.

[OpenMpApi(new Type[] { })]
public readonly struct ILogger : IEquatable<ILogger>, ILogger.IManagedInterface, IUnmanagedInterface
Implements
Inherited Members

Constructors

ILogger(nint)

Initializes a new instance of the ILogger struct.

public ILogger(nint handle)

Parameters

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(ILogger)

public bool Equals(ILogger other)

Parameters

other ILogger

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

LogLine(LogLevel, string)

Logs a new line to the console with the specified severity level.

public void LogLine(LogLevel level, string msg)

Parameters

level LogLevel

The severity level at which to log the line.

msg string

The message to log.

LogLn(LogLevel, byte*)

Prints a new line to the console with the specified severity level.

public void LogLn(LogLevel level, byte* msg)

Parameters

level LogLevel

The severity level at which to log the line.

msg byte*

The message to log.

LogLnU8(LogLevel, byte*)

Prints a new line to the console of the specified log type in UTF-8 encoding.

public void LogLnU8(LogLevel level, byte* msg)

Parameters

level LogLevel

The severity level at which to log the line.

msg byte*

The message to log.

PrintLine(string)

Prints a new line to the console.

public void PrintLine(string msg)

Parameters

msg string

The message to log.

PrintLn(byte*)

Prints a new line to the console.

public void PrintLn(byte* msg)

Parameters

msg byte*

The message to log.

PrintLnU8(byte*)

Prints a new line to the console in UTF-8 encoding.

public void PrintLnU8(byte* msg)

Parameters

msg byte*

The message to log.

Operators

operator ==(ILogger, object?)

Determines whether the specified values are equal.

public static bool operator ==(ILogger lhs, object? rhs)

Parameters

lhs ILogger

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

operator !=(ILogger, object?)

Determines whether the specified values are not equal.

public static bool operator !=(ILogger lhs, object? rhs)

Parameters

lhs ILogger

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.