Logging

Logging with Ecotone Lite

In order to setup logs for Ecotone Lite, we will need to pass PSR compatible Logger to known Services.

$ecotoneLite = EcotoneLite::bootstrap(
    [OrderService::class],
    containerOrAvailableServices: [
        // pass your Logger here
        'logger' => $loggerService,
    ]
)

If you pass Dependency Container, then the container should provide the Logger under "logger" reference.

Last updated