Skip to content

Log

Namespace Mc.Scripting · Kind class (static)

public static class Log

Global logger (prefix “[scripting]”). Plugins should prefer their own Logger.

Member Description
static void Error(string message) Writes an error.
static void Error(string message, Exception e) Writes an error with the exception.
static void Info(string message) Writes an info message with the “[scripting]” prefix.
static void Warn(string message) Writes a warning.
public static void Error(string message)

Writes an error.

Parameters

Name Type Description
message string
public static void Error(string message, Exception e)

Writes an error with the exception.

Parameters

Name Type Description
message string
e Exception
public static void Info(string message)

Writes an info message with the “[scripting]” prefix.

Parameters

Name Type Description
message string
public static void Warn(string message)

Writes a warning.

Parameters

Name Type Description
message string