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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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