/fluent-logger

Simple logging abstraction with standard java logging system

Primary LanguageJavaApache License 2.0Apache-2.0

Fluent Logger

Latest version Quality Gate Coverage License

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 for further information)

  1. First of all include the Jar file in your compile and execution classpath. Maven
	<dependency>
		<groupId>org.bytemechanics</groupId>
		<artifactId>fluent-logger</artifactId>
		<version>X.X.X</version>
	</dependency>

Graddle

dependencies {
    compile 'org.bytemechanics:fluent-logger:X.X.X'
}
  1. Get logger instance
package mypackage;
import org.bytemechanics.fluentlogger.FluentLogger;
public class MyClass{
	private static final FluentLogger logger=FluentLogger.getLogger(MyClass.class);
}
  1. Write a log
logger.trace("myMessage {} with {}","param1",2,exception);