https://github.com/bytemechanics/fluent-logger
Simple logging abstraction with standard java logging system
https://github.com/bytemechanics/fluent-logger
java library logging
Last synced: 11 months ago
JSON representation
Simple logging abstraction with standard java logging system
- Host: GitHub
- URL: https://github.com/bytemechanics/fluent-logger
- Owner: bytemechanics
- License: apache-2.0
- Created: 2017-11-25T16:03:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T16:57:10.000Z (over 4 years ago)
- Last Synced: 2025-02-12T06:24:24.535Z (over 1 year ago)
- Topics: java, library, logging
- Language: Java
- Homepage: https://fluent-logger.bytemechanics.org
- Size: 590 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Fluent Logger
[](https://maven-badges.herokuapp.com/maven-central/org.bytemechanics/fluent-logger/badge.svg)
[](https://sonarcloud.io/dashboard/index/org.bytemechanics%3Afluent-logger)
[](https://sonarcloud.io/dashboard/index/org.bytemechanics%3Afluent-logger)
[](https://opensource.org/licenses/Apache-2.0)
Simple logging abstraction with standard java logging system
## Motivation
Simplify parameter replacement in logging messages in order to avoid message processing if logger is not enabled
## Quick start
(Please read our [Javadoc](https://fluent-logger.bytemechanics.org/javadoc/index.html) for further information)
1. First of all include the Jar file in your compile and execution classpath.
**Maven**
```Maven
org.bytemechanics
fluent-logger
X.X.X
```
**Graddle**
```Gradle
dependencies {
compile 'org.bytemechanics:fluent-logger:X.X.X'
}
```
1. Get logger instance
```Java
package mypackage;
import org.bytemechanics.fluentlogger.FluentLogger;
public class MyClass{
private static final FluentLogger logger=FluentLogger.getLogger(MyClass.class);
}
```
1. Write a log
```Java
logger.trace("myMessage {} with {}","param1",2,exception);
```