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.

Fig 11 After running the web application project.

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.

Fig 12 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

2 Comments

Leave a Reply