KernelAPI reference
Class ConsoleLog
Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule
The default ILog: each message at or above MinimumLevel becomes one line
category: message on Error (read when the message is written, so a redirected stream
receives it) or on the writer it was given.
public sealed class ConsoleLog : ILogInheritance
Implements
Constructors
ConsoleLog(TextWriter?)
The default ILog: each message at or above MinimumLevel becomes one line
category: message on Error (read when the message is written, so a redirected stream
receives it) or on the writer it was given.
public ConsoleLog(TextWriter? writer = null)Parameters
writer TextWriter?
Properties
MinimumLevel
Messages below this level are dropped (Info by default).
public LogLevel MinimumLevel { get; init; }Property Value
Methods
Write(LogLevel, string, string)
Writes one message.
public void Write(LogLevel level, string category, string message)Parameters
level LogLevel
How important it is.
category string
The part of the engine it comes from, a short lower-case word (“assets”, “platform”).
message string
The message, one line, without the category.