docs.unity3d.com
    Show / Hide Table of Contents

    Class CollectingLogger

    Logger that stores/collects all messages.

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

    Properties

    Count

    Number of log items in Items

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

    Items

    Items that were logged

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

    Methods

    Error(LogCode, 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

    Implements
    ICodeLogger.Error(LogCode, String[])

    Error(String)

    Dispatches a critical error message.

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

    Message to send

    Implements
    ICodeLogger.Error(String)

    Info(LogCode, 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

    Implements
    ICodeLogger.Info(LogCode, String[])

    Info(String)

    Dispatches an informational message.

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

    Message to send

    Implements
    ICodeLogger.Info(String)

    LogAll()

    Logs all collected messages to the console.

    Declaration
    public void LogAll()

    Warning(LogCode, 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

    Implements
    ICodeLogger.Warning(LogCode, String[])

    Warning(String)

    Dispatches a warning message.

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

    Message to send

    Implements
    ICodeLogger.Warning(String)
    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