Error Logging on other apps or layers in Patterns in Action
In Patterns in Action, error logging is demonstrated in the web form presentation.
Can this same programming approach to log errors be used in the other presentations such as MVC?
and do we have to modify anything to use it in other layers to log errors? such as logging errors in the data access layer ?
Angel Valdes, Jan 25, 2014
In Pattern framework 4.0 the error log functionality is offer as an external project that all projects can use, I wonder why you did not keep it like that in pattern framework 4.5?
Jan 29, 2014
Yes, you could certainly extract error logging into its own library (project) and then share it by any other project type.
In our own projects we usually log errors in the database. The necessary code for that is very small, so there is no need to extract it out as a separate .dll.
Hope this helps.
Jack Poorte, Feb 02, 2014