Aspect-oriented programming in .NET Core
Step 11. When you run the web project, the Solution Explorer will add a new folder that is the “Log” folder. The log file will put in this folder.

The AOP will record all of the action filter information in the log file. If the web application has any problem, the error messages will be recorded by AOP in the log file. If a web application has data transformation problems, the data transformation information will be recorded by AOP in the log file.

Conclusion
The AOP can help the developer record the web application log messages. The log information will tell the developer more details on the web application from sequence 1 to sequence 6. It won’t affect the main code and help the developer fix the web application’s error message.
Reference link
- Kiczales, G.; Lamping, J.; Mendhekar, A.; Maeda, C.; Lopes, C.; Loingtier, J. M.; Irwin, J. (1997). Aspect-oriented programming
- Fundamentals of Logging in .NET Core
- Logging with .NET Core
2 Comments