Get Started
Logging & Tracing Automation
Bitryon Logger is a lightweight logging library to unify logging, tracing, and stacks without writing any logs.
Why Bitryon Logger?
Easy by default
Write logs without writing logs, non-invasive
Structured output
Confige-based output with sanitizer
Unified view
Logging & Tracing Automation to stacks view
A first example
Annotate a method with@Logging to write logs without writing logs:
import io.bitryon.logger.annotation.Logging;
@Service
public class MedicService {
@Logging // just need to annotate class or method
public List query(String sessionId, Page page){
return null;
}
}
TipAlso support traditional logging, explore examples on GitHub
How it works
| Steps | Responsibility |
|---|---|
| 1. Maven or Gradle | Introduce libraries in java or spring project. |
| 2. Java or Spring | Annotate methods or classes with @Logging; Or the traditional way: logger.log("I'm a text") |
| 3. Configuration | Configurate logger and app node under bitryon.logger/app-node in application.yml. |
| 4. Load | Load logger and components to pass around trace id across services. |
| 5. Launch | Launch java/spring application to see logs written. |