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

Project Samples

Project Activity

See All Activity >

Categories

Debuggers

License

Apache License V2.0

Follow JakeWharton Hugo

JakeWharton Hugo Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JakeWharton Hugo!

Additional Project Details

Programming Language

Java

Related Categories

Java Debuggers

Registered

2025-10-23