Skip to content

Namespace Apogee.Core.Logging

Classes

ConsoleSink

Writes entries to the console: errors and warnings to stderr, the rest to stdout.

FileLogSink

Writes each entry as a line of a file that is this run's own: <yyyyMMdd-HHmmss>-<pid>.log (UTC) in a folder that keeps the newest few. The file is flushed after every line, so that a crash keeps the last ones. Next to it, a .running marker (the process id, when it started and the log's name) lives until : a marker whose process is gone is a run that did not end cleanly (). The sink never throws: a file that cannot be written disables it, with one line on stderr.

Log

The engine's log. Entries below are dropped before they reach a sink.

RecentLogSink

Keeps the last lines that were logged, in memory: what a crash report shows of the run's end.

Structs

LogEntry

Interfaces

ILogSink

Receives log entries. can be called from any thread.

Enums

LogLevel