nexus-agents - v2.80.0
    Preparing search index...

    Interface ILogger

    Logger interface

    interface ILogger {
        debug(message: string, context?: LogContext): void;
        info(message: string, context?: LogContext): void;
        warn(message: string, context?: LogContext): void;
        error(message: string, error?: Error, context?: LogContext): void;
        child(context: LogContext): ILogger;
        setLevel(level: LogLevel): void;
        setFormat?: (format: LogFormat) => void;
        setDestination?: (destination: LogDestination, filePath?: string) => void;
    }
    Index

    Properties

    setFormat?: (format: LogFormat) => void

    Set output format (json or pretty) - optional for backward compatibility

    setDestination?: (destination: LogDestination, filePath?: string) => void

    Set output destination (stdout, stderr, or file) - optional for backward compatibility

    Methods