Skip to content

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.

C#
public sealed class ConsoleLog : ILog

Inheritance

object ← ConsoleLog

Implements

ILog

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.

C#
public ConsoleLog(TextWriter? writer = null)

Parameters

writer TextWriter?

Properties

MinimumLevel

Messages below this level are dropped (Info by default).

C#
public LogLevel MinimumLevel { get; init; }

Property Value

LogLevel

Methods

Write(LogLevel, string, string)

Writes one message.

C#
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.