Image

CHAPTER9

Logging, Error Handling, and Intrusion Detection

What rolls down stairs alone or in pairs, and over your neighbor’s dog?What’s great for a snack, and fits on your back? It’s log, Log, LOG!It’s log, it’s log, it’s big, it’s heavy, it’s wood.It’s log, it’s log, it’s better than bad, it’s good.

—The Ren and Stimpy Show

Logging Basics

Logging is the heart of all accountability in software. We use logging to help test our application in development and we log in production so we can audit application runtime behavior. Logging is also critical for security forensics so we can understand what happened after the fact when bad things go down

Get Iron-Clad Java 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.