API Reference
Class
Logger
Minimal in-memory logger for hosts that need to capture messages without external dependencies. Intended primarily for debugging and simple console renderers.
Inheritance
- Object
- Logger
Methods
public static Void AppendHistory(String message) #Returns:
VoidAppends a message to the log history without enqueueing it to the live console queue. Use this when a renderer sink is active to avoid feedback loops.
Parameters
- message System.String
public static IEnumerable<String> GetLogs() #Returns:
IEnumerable<String>Retrieves all logs collected during the application's run.
Returns
An enumerable of log messages.
public static Boolean IsEmpty() #Returns:
BooleanChecks if the log queue is empty.
Returns
True if the log queue is empty; otherwise, false.
public static Void Log(String message) #Returns:
VoidLogs a message to the internal log queue.
Parameters
- message System.String
- The message to log.
public static Boolean TryDequeue(out String log) #Returns:
BooleanAttempts to dequeue a log message from the queue.
Parameters
- log System.String@
- The log message that was dequeued.
Returns
True if a log was dequeued; otherwise, false.