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