From the course: Java EE: Contexts and Dependency Injection
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Create a log event system
From the course: Java EE: Contexts and Dependency Injection
Challenge: Create a log event system
- [Instructor] Your challenge is to create a log event system that listens for log events. And if a severe logging event occurs, the system should react by sending an email notification. In this challenge it is sufficient to simply print out the message to the console. To complete this challenge, you need to create a log event class that contains information about the severity of the log and the log message. You'll also need an observer that files the event and at least one subscriber. Now, this challenge shouldn't take you more than about 10 minutes.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.