docs.unity3d.com
    Show / Hide Table of Contents

    Class Log

    Logging class that the SDK uses for logging. Essentially a wrapper around Debug.Log/Console.WriteLine.

    Inheritance
    Object
    Log
    Namespace: Unity.Simulation
    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, Boolean)

    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.

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the console.

    F(String, Boolean)

    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.

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the console.

    I(String, Boolean)

    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.

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the console.

    V(String, Boolean)

    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.

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the console.

    W(String, Boolean)

    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.

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the console.

    Write(Log.Level, String, Boolean)

    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

    Boolean logToConsole

    boolean indicating if the log message is to be displayed on the editor console.

    Back to top
    Terms of use
    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