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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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