Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Opens an isolated log file without creating another queue or delivery worker.

API: engine
Project: Inno.Core.Logging

public Inno.Core.Logging.FileLogSink.FileLogSink(string logDirectory, long maxFileSizeBytes = 10485760, int maxFiles = 10)

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.

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.