Struct LogController
Burst-friendly backend for Logger that contains Logger
Inherited Members
Namespace: Unity.Logging
Assembly: solution.dll
Syntax
public struct LogController
Constructors
Name | Description |
---|---|
Log |
Constructor that initializes Memory |
Fields
Name | Description |
---|---|
Dispatch |
Double-buffered queue that is used for dispatching Log |
Handle | Unique id of the Logger |
Memory |
Memory manager that stores binary representation of structured logging. Log |
Sync |
Current synchronization mode |
Properties
Name | Description |
---|---|
Is |
True if Logging system has been initialized. |
Needs |
True if any sink requested stack trace. If this is false - logging would work faster. |
Methods
Name | Description |
---|---|
Add |
The function that can add function based decorator.
Internally used by Log |
Add |
Creates new sink using Sink |
Begin |
Function that is called by the logging codegeneration. Used to populate Decorate array. See Log |
Decorate |
Returns count of Function-based Decorators (that you can add with Log.Decorate(function) or Add |
Decorate |
Returns count of constant Decorators (that you can add with Log.Decorate("name", value)) They will be copied to new log message payload each time log message is created |
Dispatch |
Dispatches a Log |
End |
Function that is called by the logging codegeneration. Used to populate Decorate array. See Log |
Flush |
Burst-friendly way to immediately and synchronously Update/Flush the DispatchQueue into sinks. This is a slower alternative to LoggerManager.ScheduleUpdate but can be called from Burst / not main thread. |
Has |
Returns true if the LogLevel is supported by at least one Sink |
Log |
Count of log messages dispatched and waiting to be processed |
Must |
Checks that IsCreated == true. Throws otherwise. |
Remove |
The function that remove function based decorator that was added by Add |
Set |
Changes the minimal level of the sink |
Shutdown() | Stops Logging and releases the memory and destroys systems created by LogController. |