docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CollectingLogger

    Logger that stores/collects all messages.

    Inheritance
    object
    CollectingLogger
    Implements
    ICodeLogger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Logging
    Assembly: glTFast.dll
    Syntax
    [Serializable]
    public class CollectingLogger : ICodeLogger

    Properties

    Count

    Number of log items in Items

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Items

    Items that were logged

    Declaration
    public IEnumerable<LogItem> Items { get; }
    Property Value
    Type Description
    IEnumerable<LogItem>

    Methods

    Error(LogCode, params string[])

    Dispatches a critical error message.

    Declaration
    public void Error(LogCode code, params string[] messages)
    Parameters
    Type Name Description
    LogCode code

    Message's log code

    string[] messages

    Additional, optional message parts

    Error(string)

    Dispatches a critical error message.

    Declaration
    public void Error(string message)
    Parameters
    Type Name Description
    string message

    Message to send

    Info(LogCode, params string[])

    Dispatches an informational message.

    Declaration
    public void Info(LogCode code, params string[] messages)
    Parameters
    Type Name Description
    LogCode code

    Message's log code

    string[] messages

    Additional, optional message parts

    Info(string)

    Dispatches an informational message.

    Declaration
    public void Info(string message)
    Parameters
    Type Name Description
    string message

    Message to send

    Log(LogType, LogCode, params string[])

    Dispatches an informational message.

    Declaration
    public void Log(LogType logType, LogCode code, params string[] messages)
    Parameters
    Type Name Description
    LogType logType

    Type of message e.g. warn or error etc.

    LogCode code

    Message's log code

    string[] messages

    Additional, optional message parts

    LogAll()

    Logs all collected messages to the console.

    Declaration
    public void LogAll()

    Warning(LogCode, params string[])

    Dispatches a warning message.

    Declaration
    public void Warning(LogCode code, params string[] messages)
    Parameters
    Type Name Description
    LogCode code

    Message's log code

    string[] messages

    Additional, optional message parts

    Warning(string)

    Dispatches a warning message.

    Declaration
    public void Warning(string message)
    Parameters
    Type Name Description
    string message

    Message to send

    Implements

    ICodeLogger
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)