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

Constructors

Properties

_spinner: any = null

Accessors

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

    • Rest ...args: any[]

      Any additional arguments to log

    Returns void