From 1447dbfdf279d43e09a2157ed506fd4ccf013f62 Mon Sep 17 00:00:00 2001 From: Roman Gräf Date: Sun, 4 Feb 2018 19:01:22 +0000 Subject: Create README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md (limited to 'README.md') 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) -- cgit