Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 520 Bytes

logging.md

File metadata and controls

19 lines (15 loc) · 520 Bytes

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,
    ]
)

{% hint style="success" %} If you pass Dependency Container, then the container should provide the Logger under "logger" reference. {% endhint %}