I am wondering if there is a way to have some kind of aspect-oriented way to configure C # code logging. Or, if the code can be used to automatically log.
At the moment, the code is pierced Log("Enter method XXX")and Log("Leaving method XXX")that makes the service really tedious.
Log("Enter method XXX")
Log("Leaving method XXX")
Ideally, I would like to have something that records automatically, just like libraries are for profiling.
The next best would be to have some custom attributes, it is possible that I can tag my methods. They would enter a registration code when entering and exiting the method.
And if the solution was compatible with EntLib, that would be great :)
Greetings.
, , . : http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/
Log4PostSharp. , , PostSharp .
, , , , , . Enterprise , . , , . , , , , db, .. Enterrpise, .
, , , , , , . Enterprise Blocks Couchdb. Couchdb , REST Json, , , HTML-, , , :)
, , , , - , . , .
, .
- Interceptors/Proxying / .
- #? (ref'd ) - http://madcoderspeak.blogspot.com/2005/09/essential-interception-using-contexts.html
Source: https://habr.com/ru/post/1760711/More articles:How to change / add message options in symfony? - symfony1PHP MySQL: сохранение PDF в базу данных - phpF # quote compilation: performance? - performanceExamples of badges that don't move well? - internationalizationdjango ignore query model order parameter - djangoNUnit Secondary Thread Exception - multithreadingAdding exponential geom_smooth to ggplot2 / R - rPerforce: P4V option to add to client view? (It exists in P4Win) - perforceFrom many to many relationships using SQL and Linq (entity framework / for entities) - sqlMake sure the height is divisible by 4, if not to do so - javascriptAll Articles