Class CollectingLogger
Logger that stores/collects all messages.
Implements
Inherited Members
Namespace: GLTFast.Logging
Assembly: solution.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 |
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 |