• Enhanced status logging function with verbose control and extensibility.

    Provides flexible logging with verbose mode support, custom verbose checks, categories, severity levels, and varargs support. Messages can be conditionally logged based on global or custom verbose settings.

    Parameters

    • options: string | LogStatusOptions

      Logging options or a simple string message for backward compatibility

    Returns void

    Example

    // Simple string message
    LogStatusEx('Operation completed');

    Example

    // Verbose-only message with global check
    LogStatusEx({
    message: 'Detailed trace information',
    verboseOnly: true
    });

    Example

    // With custom verbose check and additional args
    LogStatusEx({
    message: 'Processing items:',
    verboseOnly: true,
    isVerboseEnabled: () => params.verbose === true,
    additionalArgs: [item1, item2, item3]
    });

    Example

    // With category and file logging
    LogStatusEx({
    message: 'Batch processing complete',
    category: 'BatchJob',
    logToFileName: '/logs/batch.log'
    });