Skip to content
Documentation

HAKOM.Logging.Core.Net.Api.File Namespace

Contains the public API for file-based logging, including configuration options and extension methods.

File logging writes formatted log messages to files on disk with support for:

  • Configurable log file paths and naming templates with placeholders such as {timestamp}, {host}, {processId}, and {processName}.
  • Automatic file rotation when a configurable maximum file size is exceeded.
  • Background queue-based writing to minimize impact on application throughput.
  • Configurable text encoding (defaults to UTF-8).
  • Configurable timestamp formats for both file names and log message prefixes.

The primary interface in this namespace is IFileLoggerOptions, which defines all configurable properties. Use AddFile(this ILoggingBuilder, Action<IFileLoggerOptions>, IFileSystem) to register the file logger with a logging pipeline.

Interfaces
IFileLoggerOptions Defines a set of options that control how logs are written to a file on disk.
© 2026 Volue.Version v0.6.38017 November 2026