Join Shonna Smith for an in-depth discussion in this video Logging, part of Spring: Spring MVC.
- [Instruction] So while we're in the path…of doing some Java-based configurations, let's go ahead…and add some logging customizations for our application.…So to do that, the first thing I want to do is…remember how I mentioned that there's these things…called pre- and post-processors,…they're also known as interceptors?…Well, I've already taken the liberty…of creating a logger interceptor,…just to give you an idea of how this starts.…You simply create a class, name it what you want,…I chose LoggerInterceptor.…
Make sure it extends the HandlerInterceptorAdaptor.…And then later on, as a challenge to yourself,…you can see how you can add some custom implementation here…for your logging behavior,…such as setting your logging levels at debug level,…info level, error level, whatever level you prefer.…But the next thing I really want to show you…is how we use this logging interceptor.…And to do that, I'm going to open up…my main web configuration class.…
And to use this new logger interceptor,…all I needed to do was add this method, add interceptors.…
- Using Spring MVC for web projects
- Spring MVC controllers
- Creating controllers and views
- Spring MVC models
- Creating the model
- Request mapping
- Spring MVC views
- Custom app configuration
Skill Level Intermediate
1. Using Spring MVC for Web Projects
2. Spring MVC Controllers
3. Spring MVC Models
4. Spring MVC Views
5. Custom App Configuration
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.