• Creates a log recorder that writes messages to a file.

    Parameters

    • to: string | ((this, message) => string)

      The log file to write messages to. Either a string containing a file path, or a function accepting log message and returning a file path.

    • how: FileZLogSpec = {}

      A specification of how to log messages to file.

    Returns ZLogRecorder

    New log recorder.

Generated using TypeDoc