API Reference
Class
FileLogSink
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
- Log file path; when empty uses TestimoX.run.log in the current directory.
- append System.Boolean = false
- Append to existing file instead of overwriting.
- maxSizeMb System.Int32 = 20
- Maximum size in megabytes before rolling occurs.
- maxFiles System.Int32 = 3
- Maximum number of rolled files to keep.
Methods
public virtual Void Dispose() #Returns:
VoidUnsubscribes from logger events and closes the log file.