creates a new file transport. automatically creates the log file if it doesn't exist.
configuration options for the file transport
writes a log entry to the file. automatically handles file rotation if maxSize is configured.
the log entry to write
transport that writes log entries to a file with optional log rotation. supports automatic file rotation based on size and maintains a configurable number of backup files.
Example: basic usage
Example: with rotation
Example: with custom formatter