TestimoX

API Reference

Class

FileLogSink

Namespace ADPlayground
Assembly ADPlayground
Implements
IDisposable
Modifiers sealed

Lightweight file sink that subscribes to InternalLogger events and writes a live .log file. Thread-safe, line-oriented, with simple size-based rolling.

Inheritance

  • Object
  • FileLogSink

Constructors

public FileLogSink(String path, Boolean append = false, Int32 maxSizeMb = 20, Int32 maxFiles = 3) #

Creates a file sink and subscribes to logger events, rolling the file when it reaches maxSizeMb.

Parameters

path System.String requiredposition: 0
Log file path; when empty uses TestimoX.run.log in the current directory.
append System.Boolean = false optionalposition: 1
Append to existing file instead of overwriting.
maxSizeMb System.Int32 = 20 optionalposition: 2
Maximum size in megabytes before rolling occurs.
maxFiles System.Int32 = 3 optionalposition: 3
Maximum number of rolled files to keep.

Methods

public virtual Void Dispose() #
Returns: Void

Unsubscribes from logger events and closes the log file.