Hugo is a small Android library (and annotation processor plugin) that automatically logs method calls, parameters, return values, and execution time for methods annotated with @DebugLog. Instead of manually adding logging statements everywhere, you simply annotate a method and Hugo injects the logging at compile-time in debug builds, keeping release builds clean. This helps developers gain visibility into method flows, execution timing, and parameter passing without cluttering production code. The annotation doesn’t remain in the compiled class for non-debug builds, so there’s zero runtime penalty in release. Hugo uses bytecode/annotation processing behind the scenes but maintains simple API usage for developers. It’s especially useful during development and debugging phases in large Android codebases where tracing logic by hand would be tedious.
Features
- @DebugLog annotation for Android methods to auto-log method invocation
- Automatic logging of parameters, return values, and method execution time
- Works during debug builds only, no overhead in release builds
- Simple setup: add plugin/dependency and annotate methods, no manual logs
- Improves visibility of code flow and performance hotspots during development
- Minimal API surface makes it easy to adopt gradually in existing projects