Class Log | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Log

    A simple logger, which logs messages to a List.

    Inheritance
    System.Object
    Log
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet
    Syntax
    public sealed class Log : ILog<LogItem>
    Remarks

    Using singleton pattern as proposed by Jon Skeet. http://csharpindepth.com/Articles/General/Singleton.aspx

    Properties

    Data

    Declaration
    public IList<LogItem> Data { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<LogItem>
    Implements
    ILog<T>.Data

    Instance

    Declaration
    public static ILog<LogItem> Instance { get; }
    Property Value
    Type Description
    ILog<LogItem>

    Level

    Declaration
    public LogLevel Level { get; }
    Property Value
    Type Description
    LogLevel
    Implements
    ILog<T>.Level

    Verbose

    Log detailed information.

    Declaration
    public static bool Verbose { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Add(LogItem)

    Declaration
    public void Add(LogItem item)
    Parameters
    Type Name Description
    LogItem item
    Implements
    ILog<T>.Add(T)

    Clear()

    Declaration
    public void Clear()
    Implements
    ILog<T>.Clear()

    Error(String, String)

    Declaration
    public void Error(string message, string location)
    Parameters
    Type Name Description
    System.String message
    System.String location
    Implements
    ILog<T>.Error(String, String)

    Info(String)

    Declaration
    public void Info(string message)
    Parameters
    Type Name Description
    System.String message
    Implements
    ILog<T>.Info(String)

    Warning(String, String)

    Declaration
    public void Warning(string message, string location)
    Parameters
    Type Name Description
    System.String message
    System.String location
    Implements
    ILog<T>.Warning(String, 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