diff options
author | Roman Gräf <roman.graef@gmail.com> | 2018-02-04 19:01:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-04 19:01:22 +0000 |
commit | 1447dbfdf279d43e09a2157ed506fd4ccf013f62 (patch) | |
tree | a76429facb0ac35addd8c2cb2496342336631eda /README.md | |
parent | f869896918274a7bee271c5770131fa612fa821f (diff) | |
download | Logging-master.tar.gz Logging-master.tar.bz2 Logging-master.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7cdaed5 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Logging [![Jitpack](https://jitpack.io/v/romangraef/Logging.svg)](https://jitpack.io/#romangraef/Logging) +a simple logging utility. +use like the following: + +```java +Logger logger = Logger.getLogger(); // with current classname as loggername +// or +Logger logger = Logger.getLogger("logger-name"); +``` + +and actually log with: +```java +logger.log("Log string"); +logger.logf("%s %d", "String formatting is", 1337) +``` + +You can even use it in other loggers if they support `PrintStream`s or set it as default `System.out`: +```java +System.setOut(logger.getAsPrintStream()); +``` + +## Installation +Install via [![Jitpack](https://jitpack.io/v/romangraef/Logging.svg)](https://jitpack.io/#romangraef/Logging) |