Search Results for

    Show / Hide Table of Contents

    Class Log

    Custom logging utility that displays log messages in Unity's debug log and in the simulator's log panel. Should be preferred over UnityEngine.Debug.

    Inheritance
    object
    Log
    Namespace: AS2
    Assembly: .dll
    Syntax
    public static class Log

    Fields

    | Edit this page View Source

    logHistory

    Declaration
    private static List<string> logHistory
    Field Value
    Type Description
    List<string>
    | Edit this page View Source

    logID

    Declaration
    private static int logID
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    AddToLogHistory(string)

    Adds the given text to the log's history.

    Declaration
    public static void AddToLogHistory(string text)
    Parameters
    Type Name Description
    string text

    The text that should be added.

    | Edit this page View Source

    ClearLogHistory()

    Clears the log's internal history.

    Declaration
    public static void ClearLogHistory()
    | Edit this page View Source

    Debug(string)

    Logs a debug message.

    Declaration
    public static void Debug(string text)
    Parameters
    Type Name Description
    string text

    The debug message.

    | Edit this page View Source

    Debug(string, bool)

    Logs a debug message.

    Declaration
    public static void Debug(string text, bool logOnlyInEditor)
    Parameters
    Type Name Description
    string text

    The debug message.

    bool logOnlyInEditor

    If true, only displays the message in Unity's debug log.

    | Edit this page View Source

    Entry(string)

    Logs a simple message.

    Declaration
    public static void Entry(string text)
    Parameters
    Type Name Description
    string text

    The message.

    | Edit this page View Source

    Entry(string, bool)

    Logs a simple message.

    Declaration
    public static void Entry(string text, bool logOnlyInEditor)
    Parameters
    Type Name Description
    string text

    The message.

    bool logOnlyInEditor

    If true, only displays the message in Unity's debug log.

    | Edit this page View Source

    Error(string)

    Logs an error message.

    Declaration
    public static void Error(string text)
    Parameters
    Type Name Description
    string text

    The error message.

    | Edit this page View Source

    Error(string, bool)

    Logs an error message.

    Declaration
    public static void Error(string text, bool logOnlyInEditor)
    Parameters
    Type Name Description
    string text

    The error message.

    bool logOnlyInEditor

    If true, only displays the message in Unity's debug log.

    | Edit this page View Source

    SaveLogToFile(string)

    Writes the log's history to the given file.

    Declaration
    public static void SaveLogToFile(string path)
    Parameters
    Type Name Description
    string path

    The path to the file to which the log should be written.

    | Edit this page View Source

    Warning(string)

    Logs a warning message.

    Declaration
    public static void Warning(string text)
    Parameters
    Type Name Description
    string text

    The warning message.

    | Edit this page View Source

    Warning(string, bool)

    Logs a warning message.

    Declaration
    public static void Warning(string text, bool logOnlyInEditor)
    Parameters
    Type Name Description
    string text

    The warning message.

    bool logOnlyInEditor

    If true, only displays the message in Unity's debug log.

    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX