mercredi 21 novembre 2018

Logger in Clean Architecture

I'm trying to apply Clean Architecture in my PHP application. At the moment I have my business logic entity User and service UsersService. UsersService collects all of the use cases related to the User entity.

UsersService->createUser(someData) takes Users repository and stores it in the database.

I call createUser use case in my Controller and in my Cli Task. And I want to integrate logging system in my project. I want to log something inside use case and inside controller/task.

Where I need to place my Loggers factory/Logger interfaces?

Aucun commentaire:

Enregistrer un commentaire