Function setLogger

  • Sets custom logger implementation for the framework.

    All log messages from internal services will be forwarded to the provided logger with automatic context injection (strategyName, exchangeName, symbol, etc.).

    Parameters

    • logger: ILogger

      Custom logger implementing ILogger interface

    Returns Promise<void>

    setLogger({
    log: (topic, ...args) => console.log(topic, args),
    debug: (topic, ...args) => console.debug(topic, args),
    info: (topic, ...args) => console.info(topic, args),
    });