Creates a new instance of LoggerErrorListeners.
The path to the file where errors will be logged.
Optional
options: ErrorListenersOptionsThe options for the LoggerErrorListeners.
Attaches the listeners for unhandled promise rejections and uncaught exceptions.
If the listeners are already attached, this method does nothing.
Detaches the listeners for unhandled promise rejections and uncaught exceptions.
If the listeners are not attached, this method does nothing.
Checks if the listeners are currently attached.
True if the listeners are currently attached, false otherwise.
A utility class that listens for unhandled promise rejections and uncaught exceptions, logs them to a specified file, or if that fails, to stderr.