Interface ILogger
Namespace: Unity.Logging.Sinks
Syntax
public interface ILogger
Methods
OnLogMessage(in LogMessage, in FixedString512Bytes, ref LogMemoryManager)
OnLogMessage is a main sink function that takes as an input LogMessage and does something with it for instance converts into a string and writes the string to the console (see ConsoleSinkSystem)
Declaration
void OnLogMessage(in LogMessage logEvent, in FixedString512Bytes outTemplate, ref LogMemoryManager memoryManager)
Parameters
Type | Name | Description |
---|---|---|
LogMessage | logEvent | LogMessage that should be processed |
FixedString512Bytes | outTemplate | General template that instructs how to convert the message into string. Example: '{Timestamp} | {Level} | {Message}' |
LogMemoryManager | memoryManager | Memory manager that contains all the binary info that you can request with LogMessage struct |