Skip to content

KernelAPI reference

Interface ILog

Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule

Where the engine’s diagnostics go. The default (ConsoleLog) writes them to the standard error stream; a host that has its own (a phone’s system log, a browser console, an editor panel) registers another sink as the engine’s ILog service.

C#
public interface ILog

Methods

Write(LogLevel, string, string)

Writes one message.

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