Synced
FileLogSink.Constructor
Section titled “FileLogSink.Constructor”
- Opens an isolated log file without creating another queue or delivery worker.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Logging
Declaration
Section titled “Declaration”public Inno.Core.Logging.FileLogSink.FileLogSink(string logDirectory, long maxFileSizeBytes = 10485760, int maxFiles = 10)Parameters
Section titled “Parameters”Parameter logDirectory: Directory in which complete log files are retained.
Parameter maxFileSizeBytes: Positive rotation threshold. An entry larger than this threshold occupies its own file.
Parameter maxFiles: Positive number of retained files, including the current file.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The directory is blank or invalid.
Exception T:System.ArgumentOutOfRangeException: A rotation or retention limit is not positive.
Exception T:System.IO.IOException: The directory or initial file cannot be opened.
Exception T:System.UnauthorizedAccessException: The caller cannot create or access the log directory.