TestimoX

API Reference

Class

Logger

Namespace TestimoX.Definitions
Assembly TestimoX
Modifiers static

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: Void

Appends 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 requiredposition: 0
public static Void Clear() #
Returns: Void

Clears all logs from the log queue and history.

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: Boolean

Checks if the log queue is empty.

Returns

True if the log queue is empty; otherwise, false.

public static Void Log(String message) #
Returns: Void

Logs a message to the internal log queue.

Parameters

message System.String requiredposition: 0
The message to log.
public static Boolean TryDequeue(out String log) #
Returns: Boolean

Attempts to dequeue a log message from the queue.

Parameters

log System.String@ requiredposition: 0
The log message that was dequeued.

Returns

True if a log was dequeued; otherwise, false.