samedi 1 décembre 2018

The right way to implement logging

Im working on simple console application that gets xml, map it to entities list and execute some sql commands. I separate db Access layer with command dispatcher pattern from presentation. Now i need to implement logging errors and user activities. What is best way to do it clean? Dispatcher decorator is easy but shouldn't logger be in presentation layer? Maybe i need some event sourcing to publish command executions and errors. Do You guys have some good sources about N-Tier logging implementations?

Aucun commentaire:

Enregistrer un commentaire