BETA SOFTWARE: This SDK is feature-complete for basic logging use cases but is marked as BETA while we gather community feedback and add additional features. The API is stable but may evolve based on user needs.
A lightweight Java SDK for communicating with the LogFlux agent’s local server via Unix socket or TCP protocols.
Complete documentation and examples on GitHub →
Key Features
- Multiple transport protocols: Unix socket (default), TCP
- Async mode: Non-blocking sends with configurable buffer (default enabled)
- Circuit breaker: Automatic failure detection and recovery
- Batch processing: High-performance batching for throughput
- SLF4J integration: Native Logback appender with zero code changes
- Authentication support: TCP shared secret authentication
Built-in Logger Integrations
Integrations and adapters for popular Java logging libraries:
- SLF4J - Standard logging facade integration
- Logback - Native appender support
- Standard logging - Direct SDK usage for custom applications
Installation
Maven
|
|
Gradle
|
|
Quick Start
SLF4J Integration (Recommended)
Configure logback.xml
:
|
|
Use standard SLF4J logging:
|
|
Direct SDK Usage
|
|
Current Status
- Stable API for core logging functionality
- Production quality code and testing
- Ready for evaluation and non-critical use cases
- Additional features (metrics, traces, events) coming soon
Requirements
- Java: 11 or later
- LogFlux Agent: Required for SDK operation
Support
- Full Documentation: GitHub Repository
- Issues: GitHub Issues
Disclaimer
The Java logo and trademarks are the property of Oracle Corporation. LogFlux is not affiliated with, endorsed by, or sponsored by Oracle Corporation. The Java logo is used solely for identification purposes to indicate compatibility and integration capabilities.