docs.unity3d.com
    Show / Hide Table of Contents

    Class NetworkLog

    Helper class for logging

    Inheritance
    Object
    NetworkLog
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023