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; }
Type | Description |
---|---|
VerbosityLevel | Different 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
Type | Name | Description |
---|---|---|
object | logMsg | The message to print. |
void DebugFormat
Prints the given log message with formatting.
public static void DebugFormat(
string logMsg,
params object [] args
)
Parameters
Type | Name | Description |
---|---|---|
string | logMsg | The formatted message to print. |
params object [] | args | The arguments to pass the formatted log message |
void Error
Prints the given log message as an error.
public static void Error(
object logMsg
)
Parameters
Type | Name | Description |
---|---|---|
object | logMsg | The 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
Type | Name | Description |
---|---|---|
string | logMsg | The formatted error message to print. |
params object [] | args | The arguments to pass the formatted message |
void Warning
Prints the given log message as a warning.
public static void Warning(
object logMsg
)
Parameters
Type | Name | Description |
---|---|---|
object | logMsg | The 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
Type | Name | Description |
---|---|---|
string | logMsg | The formatted warning message to print. |
params object [] | args | The 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.
Enumerator | Value | Description |
---|---|---|
Silent | Don't print any MLPlugin logs. | |
ErrorsOnly | Print only MLPlugin error logs. | |
WarningsAndErrors | Print MLPlugin error and warning logs. | |
Verbose | Print all MLPlugin logs. |