HuygensING / log

log singleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usage:

add dependency:

<dependency>
  <groupId>nl.knaw.huygens</groupId>
  <artifactId>log</artifactId>
  <version>${log.version}</version>
</dependency>
import nl.knaw.huygens.Log;

The singleton Log delegates all org.slf4j.Logger methods, so you can use it like this:

 Log.debug("var={}",var);

without having to do a Loggerfactory.getLogger(Some.class); It uses logback as a logger.

About

log singleton


Languages

Language:Java 100.0%