Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Log

Index

Constructors

  • new Log(topic: string, directory: string): Log

Properties

_fdStream: undefined | Promise<<internal>.Writable>
console: Console

The underlying console stream.

fdPromise: Promise<number>
path: string

The path to the log file.

stream: WriteStream

A stream to write to the log file.

Accessors

Methods

  • debug(data: any, ...args: any[]): void
  • Log with the given arguments, but only if debug logging is enabled.

    Parameters

    • data: any
    • Rest ...args: any[]

    Returns void

  • error(message: any, ...optionalParameters: any[]): void
  • Print a log message to the log file; appends a new line as appropriate.

    Parameters

    • message: any
    • Rest ...optionalParameters: any[]

    Returns void

  • info(message: any, ...optionalParameters: any[]): void
  • Print a log message to the log file; appends a new line as appropriate.

    Parameters

    • message: any
    • Rest ...optionalParameters: any[]

    Returns void

  • log(message: any, ...optionalParameters: any[]): void
  • Print a log message to the log file; appends a new line as appropriate.

    Parameters

    • message: any
    • Rest ...optionalParameters: any[]

    Returns void

  • logWithDate(method: consoleKey, message: any, optionalParameters: any[]): void
  • sync(): Promise<void>
  • warn(message: any, ...optionalParameters: any[]): void
  • Print a log message to the log file; appends a new line as appropriate.

    Parameters

    • message: any
    • Rest ...optionalParameters: any[]

    Returns void

Generated using TypeDoc