Engineering notes and practical guides

Logging

Field notes on AEM, Java, web development, performance, tooling, and the little fixes that save future-you an afternoon.

1
Articles
57
Topics
0
Featured
Featured article
Automatically Add Entry and Exit Logging to Java Methods

This post explains how to automate logging in Java methods using JavaParser. The provided code parses a Java file, locates a Logger instance, and injects Entering and Exiting log statements at the start and end of each method. This automation saves time and makes tracking program flow easier without manual log insertion.

Read featured

Browse the archive

Latest Articles