A most lightweight logging library for Java.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
src/main/java/delight/simplelog
.classpath
.gitignore
.project
.travis.yml
Jenkinsfile
README.md
pom.xml

README.md

delight-simple-log

A most lightweight logging library for Java.

Usage

Log something:

Log.print("message to print");

By default, delight-simple-log will log any received messages to the command line.

You can use delight-simple-log-log4j to send all log messages to Log4J instead:

Log.setListener(new Log4JBridge());

You can also define your own custom listeners to redirect the log to where ever you wish.

Redirect log (simple):

Log.setStdOut(new Closure<String>() {
   public void apply(String message) {
   		...
   }
});

Redirect log (full context):

Log.setListener(new LogListener() { ... });

Maven Dependency

<dependency>
    <groupId>org.javadelight</groupId>
    <artifactId>delight-simple-log</artifactId>
    <version>[insert latest version]</version>
</dependency>

This artifact is available on Maven Central and BinTray.

Maven Central