Create a pino logger. With logging.file, the file is open (or the call rejects) before the logger is returned, so no early line is lost.
logging.file
Optional
Optional logging configuration.
Log file path.
Log level.
Rotation of the log file (D171).
A configured pino logger.
Create a pino logger. With
logging.file, the file is open (or the call rejects) before the logger is returned, so no early line is lost.