INWLogger

csharp
public interface INWLogger

Namespace NodeWorld.Core.

The log of the SDK and the game, with a context in front of each line.

Properties

IsDebugEnabled

csharp
bool IsDebugEnabled { get; }

Debug lines are written.

IsInfoEnabled

csharp
bool IsInfoEnabled { get; }

Info lines are written.

Methods

Debug

csharp
void Debug(string message)

Writes a debug line.

Info

csharp
void Info(string message)

Writes an info line.

Warn

csharp
void Warn(string message)

Writes a warning.

Error

csharp
void Error(string message)

Writes an error.

csharp
void Error(string message, Exception exception)

Writes an error with its exception.

WithContext

csharp
INWLogger WithContext(string context)

A logger with another context.