DCS World Typescript
    Preparing search index...

    LoggerTransports are the functions that are used to log messages with different severity levels.

    They are statically defined on the Logger class.

    Update them to change the way messages are logged.

    Transports are called as plain functions with the formatted message as their only argument (no self), so Lua functions such as print or DCS's env.info can be used directly.

    const logger = new Logger("MyLogger");
    Logger.transports = { trace: print, debug: print, info: print, warn: print, error: print };
    interface LoggerTransports {
        debug: (message: string) => void;
        error: (message: string) => void;
        info: (message: string) => void;
        trace: (message: string) => void;
        warn: (message: string) => void;
    }
    Index
    debug: (message: string) => void
    error: (message: string) => void
    info: (message: string) => void
    trace: (message: string) => void
    warn: (message: string) => void