Creating a Convenience Method to Implement Logging

Both of the logging packages we have demonstrated here required a configuration file. These configuration files contain a number of flexible settings which detail how logging should be performed. In a production environment where logging is being used to track the progress of critical programs or to log potentially serious warnings and errors, it is important that logging be done correctly. To make logging work correctly it is important that a centralized set of one or more configuration files be managed and controlled by staff responsible for system administration and maintenance.

To facilitate this process of maintaining centralized control over the set of configuration files, the location ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.