Logging your programs can greatly aid in debugging them, but writing frequent log statements in your code can be painful. Log statements are prone to errors, and those that are misused or overlooked sometimes require debugging themselves. This article introduces Jylog, a new approach to error-free and flexible event logging. Based on the Java Platform Debugger Architecture (JPDA), Jylog completely separates logging from coding. Learn how Jylog and its underlying technology, JPDA, work, and how you can use them to build a logger or debugger. Also discover how Jylog can help you in other application areas, such as unit testing and reverse engineering. (3,400 words)