aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRoman Gräf <roman.graef@gmail.com>2018-02-04 19:01:22 +0000
committerGitHub <noreply@github.com>2018-02-04 19:01:22 +0000
commit1447dbfdf279d43e09a2157ed506fd4ccf013f62 (patch)
treea76429facb0ac35addd8c2cb2496342336631eda /README.md
parentf869896918274a7bee271c5770131fa612fa821f (diff)
downloadLogging-1447dbfdf279d43e09a2157ed506fd4ccf013f62.tar.gz
Logging-1447dbfdf279d43e09a2157ed506fd4ccf013f62.tar.bz2
Logging-1447dbfdf279d43e09a2157ed506fd4ccf013f62.zip
Create README.mdHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
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)