Categories: ASP.NETASP.NET Core

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

Page: 1 2 3 4 5

davidsky69

View Comments

Recent Posts

Structural Patterns – Filter/Criteria

Filter/Criteria – According to the developer logic and decouple methods to connect, which uses the different…

5 years ago

Structural Patterns – Proxy

Proxy – An object representing another object, allowing do something from the original object.From Design Pattern…

5 years ago

Structural Patterns – Private Class Data

Private Class Data – Restricts accessor/mutator access. Control write access to object attributes and separate data…

5 years ago

Structural Patterns – Flyweight

Flyweight – A fine-grained instance is used for efficient sharing. Reduce the create object number and…

5 years ago

Structural Patterns – Facade

Facade – A single class that represents an entire subsystem that hides the system complexity.From Design…

5 years ago

Structural Patterns – Decorator

Decorator – Add new behaviors to the object without modifying the object architecture and keep existing…

5 years ago