Skip to main content
Version: 14 Oct 2024

MLPluginLog

NameSpace: MagicLeap

Used to print logs within the plugin.

Public Fields

Level

Gets or sets current level of logs to print.


public static VerbosityLevel Level { get; set; }

TypeDescription
VerbosityLevelDifferent verbosity levels of which logs to print. Modify this to change the verbosity of the Magic Leap APIs.

Public Methods

void Debug

Prints the given log message.

public static void Debug(
object logMsg
)

Parameters

TypeNameDescription
objectlogMsgThe message to print.

void DebugFormat

Prints the given log message with formatting.

public static void DebugFormat(
string logMsg,
params object [] args
)

Parameters

TypeNameDescription
stringlogMsgThe formatted message to print.
params object []argsThe arguments to pass the formatted log message

void Error

Prints the given log message as an error.

public static void Error(
object logMsg
)

Parameters

TypeNameDescription
objectlogMsgThe error to print.

void ErrorFormat

Prints the given log message as an error with formatting.

public static void ErrorFormat(
string logMsg,
params object [] args
)

Parameters

TypeNameDescription
stringlogMsgThe formatted error message to print.
params object []argsThe arguments to pass the formatted message

void Warning

Prints the given log message as a warning.

public static void Warning(
object logMsg
)

Parameters

TypeNameDescription
objectlogMsgThe warning to print.

void WarningFormat

Prints the given log message as a warning with formatting.

public static void WarningFormat(
string logMsg,
params object [] args
)

Parameters

TypeNameDescription
stringlogMsgThe formatted warning message to print.
params object []argsThe arguments to pass the formatted message

Public Enums

VerbosityLevel

Different verbosity levels of which logs to print. Modify this to change the verbosity of the Magic Leap APIs.

EnumeratorValueDescription
SilentDon't print any MLPlugin logs.
ErrorsOnlyPrint only MLPlugin error logs.
WarningsAndErrorsPrint MLPlugin error and warning logs.
VerbosePrint all MLPlugin logs.