@darthcav/ts-utils
    Preparing search index...

    Function getConsoleLogger

    • Configures logging and returns a Logger for the given category name.

      Records at or above lowestLevel are written to the console using an ANSI color formatter with RFC 3339 timestamps. The internal logtape/meta logger is silenced.

      Logging is configured with reset: true, so this function is safe to call more than once: each call reconfigures logtape from scratch and the most recent call wins. (Without it, logtape throws because logging is already configured.)

      Parameters

      • name: string

        The top-level category name (typically the application name).

      • lowestLevel: "trace" | "debug" | "info" | "warning" | "error" | "fatal" = "info"

        The minimum log level to output. Defaults to "info".

      Returns Promise<Logger>

      A promise resolving to a logger scoped to the given category.