Skip to main content

Unity.Netcode.NetworkLog

Helper class for logging

Inheritance#

System.Object

NetworkLog

Inherited Members#

System.Object.Equals(System.Object)

System.Object.Equals(System.Object, System.Object)

System.Object.GetHashCode()

System.Object.GetType()

System.Object.MemberwiseClone()

System.Object.ReferenceEquals(System.Object, System.Object)

System.Object.ToString()

Syntax#
public static class NetworkLog

Properties#

CurrentLogLevel#

Gets the current log level.

Declaration#
public static LogLevel CurrentLogLevel { get; }
Property Value#
TypeDescription
LogLevelThe current log level.

Methods#

LogError(String)#

Declaration#
public static void LogError(string message)
Parameters#
TypeNameDescription
System.Stringmessage

LogErrorServer(String)#

Logs an error log locally and on the server if possible.

Declaration#
public static void LogErrorServer(string message)
Parameters#
TypeNameDescription
System.StringmessageThe message to log

LogInfo(String)#

Declaration#
public static void LogInfo(string message)
Parameters#
TypeNameDescription
System.Stringmessage

LogInfoServer(String)#

Logs an info log locally and on the server if possible.

Declaration#
public static void LogInfoServer(string message)
Parameters#
TypeNameDescription
System.StringmessageThe message to log

LogWarning(String)#

Declaration#
public static void LogWarning(string message)
Parameters#
TypeNameDescription
System.Stringmessage

LogWarningServer(String)#

Logs a warning log locally and on the server if possible.

Declaration#
public static void LogWarningServer(string message)
Parameters#
TypeNameDescription
System.StringmessageThe message to log