Class Logger
Main class of Logging library.
Contains Sinks, unique identifier Logger
Implements
Inherited Members
Namespace: Unity.Logging
Assembly: solution.dll
Syntax
public class Logger : IDisposable
Constructors
Name | Description |
---|---|
Logger(Logger |
Constructor |
Fields
Properties
Name | Description |
---|---|
Minimal |
Minimal Log |
Sinks |
Returns count of sinks that this Logger has |
Methods
Name | Description |
---|---|
Add |
Creates new sink using Sink |
Add |
Creates new sink using Sink |
Dispose() | Disposes the Logger. See IDisposable |
Get |
Get or create sink of type T |
Get |
Returns sink number i. Used for debugging |
Get |
Returns the sink of type T. Will return first one if there are several ones of the type T |
Has |
Returns true if this Logger can process messages with Log |
Set |
Changes LogLevel for all sinks in the logger. No need to call Update |
Update |
Method that updates internal cached MinimalLogLevelAcrossAllSinks, and HasNoSinks please call it if you update sink's MinimalLogLevel or add/remove sinks
Update will take effect only after logger's update because of async nature of the logging. So if you want to do the change synchronously - please call Flush |