Options for the enhanced LogStatusEx function

interface LogStatusOptions {
    additionalArgs?: any[];
    category?: string;
    isVerboseEnabled?: (() => boolean);
    logToFileName?: string;
    message: string;
    severity?: SeverityType;
    verboseOnly?: boolean;
}

Properties

additionalArgs?: any[]

Additional arguments to pass to console.log (varargs)

category?: string

Category for filtering logs

isVerboseEnabled?: (() => boolean)

Optional custom function to check if verbose logging is enabled

Type declaration

    • (): boolean
    • Returns boolean

logToFileName?: string

Optional file name to log to

message: string

The message to log

severity?: SeverityType

Severity level for future extensibility

verboseOnly?: boolean

If true, only logs when verbose mode is enabled