9. Logging, Debugging, Monitoring, and Profiling

image

LOGGING IS AN IMPORTANT ISSUE that sometimes doesn’t get the attention it deserves in various projects. Logging can be used for debugging, troubleshooting, tracing, or audit trail purposes. Logging can range from simple print statements to complex database or remote logging. Finding a good logging solution is key, preferably one that provides options such as control of output by severity level, formatting options, and the destination (for example, file or database).

Debugging, on the other hand, is necessary when bugs in a system are discovered, whether we like them or not. Bugs are software defects. ...

Get Agile Java Development with Spring, Hibernate and Eclipse 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.