Class: FileHandler

FileHandler(filename, limitopt)

A Handler that writes log messages to a file.

Constructor

new FileHandler(filename, limitopt)

Initialize a new FileHandler.

Parameters:
Name Type Attributes Default Description
filename string

The name of the file to write log messages to.

limit number <optional>
0

The maximum size of the file in bytes before it is rotated.

Extends

  • Handler

Classes

FileHandler

Methods

(async) publish()