Class Log
Logging class that the SDK uses for logging. Essentially a wrapper around Debug.Log/Console.WriteLine.
Inherited Members
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.dll
Syntax
public static class Log
Properties
level
Get/Set the logging level.
Declaration
public static Log.Level level { get; set; }
Property Value
| Type | Description |
|---|---|
| Log.Level |
Methods
E(string, bool)
Log Error level message to the file.
Declaration
public static void E(string message, bool logToConsole = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Error log message. |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the console. |
F(string, bool)
Log Fatal level message to the file.
Declaration
public static void F(string message, bool logToConsole = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Fatal log message. |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the console. |
I(string, bool)
Log info level message to the file.
Declaration
public static void I(string message, bool logToConsole = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Info log message. |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the console. |
V(string, bool)
Log Verbose level message to the file.
Declaration
public static void V(string message, bool logToConsole = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Verbose log message. |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the console. |
W(string, bool)
Log Warning level message to the file.
Declaration
public static void W(string message, bool logToConsole = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Info warning message. |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the console. |
Write(Level, string, bool)
Write the log message to the player log file and/or console.
Declaration
public static void Write(Log.Level level, string message, bool logToConsole)
Parameters
| Type | Name | Description |
|---|---|---|
| Log.Level | level | Log Level |
| string | message | Log message |
| bool | logToConsole | boolean indicating if the log message is to be displayed on the editor console. |