lily
    Preparing search index...

    transport that outputs log entries to the console. uses the console formatter by default but can accept custom formatters.

    const transport = new ConsoleTransport();
    logger.addTransport(transport);
    const formatter = new ConsoleFormatter({ colourize: false });
    const transport = new ConsoleTransport(formatter);

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • outputs a log entry to the console. if the entry has additional arguments, they are passed to console.log separately to maintain proper formatting and object inspection.

      Parameters

      Returns void

      Example: entry with args

      // entry: { message: "user data", args: [{ id: 123, name: "john" }] }
      // outputs: "[timestamp] [INFO] user data { id: 123, name: "john" }"