Class NetworkLog
Helper class for logging
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public static class NetworkLog
Properties
CurrentLogLevel
Gets the current log level.
Declaration
public static LogLevel CurrentLogLevel { get; }
Property Value
Type | Description |
---|---|
LogLevel | The current log level. |
Methods
LogError(string)
Locally logs a error log with Netcode prefixing.
Declaration
public static void LogError(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |
LogErrorServer(string)
Logs an error log locally and on the server if possible.
Declaration
public static void LogErrorServer(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |
LogInfo(string)
Locally logs a info log with Netcode prefixing.
Declaration
public static void LogInfo(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |
LogInfoServer(string)
Logs an info log locally and on the server if possible.
Declaration
public static void LogInfoServer(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |
LogWarning(string)
Locally logs a warning log with Netcode prefixing.
Declaration
public static void LogWarning(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |
LogWarningServer(string)
Logs a warning log locally and on the server if possible.
Declaration
public static void LogWarningServer(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to log |