Member Junction
    Preparing search index...

    Base class for logging, you can sub-class this class to create your own logger and override the logError and logStatus methods if desired. The default behavior in the base class is to use the LogError/LogStatus functions from the @memberjunction/core package to log to the console and to a log file if configured in the config.json file.

    Supports two modes:

    • Verbose mode: Full console output with detailed messages
    • Normal mode: Clean spinner-based status updates
    Index

    Constructors

    Methods

    • Helper function to log a message with a specified severity and whether it is an error

      Parameters

      • message: string

        The message to log

      • severity: SeverityType

        The severity of the message

      • isError: boolean

        Whether to treat this message as an error

      • ...args: any[]

        Any additional arguments to log

      Returns void

    • Update spinner text (non-verbose mode only). Resets the live elapsed timer so the displayed duration tracks the new sub-step rather than the prior one.

      Parameters

      • message: string

      Returns void