delight-simple-log

A most lightweight log for Java.

License

License

GPL
GroupId

GroupId

org.javadelight
ArtifactId

ArtifactId

delight-simple-log
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

bundle
Description

Description

delight-simple-log
A most lightweight log for Java.
Project URL

Project URL

https://github.com/javadelight/delight-simple-log
Source Code Management

Source Code Management

https://github.com/javadelight/delight-simple-log

Download delight-simple-log

Dependencies

compile (2)

Group / Artifact Type Version
org.javadelight : delight-functional jar 0.1.0
org.javadelight : delight-strings jar 0.0.3

test (1)

Group / Artifact Type Version
junit : junit jar 4.7

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.0.2