From 2aa4f95f05b95e026236d6a7f96f445fc36e89e3 Mon Sep 17 00:00:00 2001 From: Cosmin Lehene Date: Mon, 3 Dec 2018 09:36:43 -0800 Subject: [PATCH 1/2] Added Maven dependency example --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d1cd7e7a..52143959 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,26 @@ recommended Java logging API within Google. ### 1. Add the dependencies on Flogger -All code that uses flogger should depend on -`com.google.flogger:flogger:` and -`com.google.flogger:flogger-system-backend:`. +All code that uses flogger should depend on: + +* `com.google.flogger:flogger:` +* `com.google.flogger:flogger-system-backend:` + +**Maven** + +```xml + + com.google.flogger + flogger + ${flogger.version} + + + com.google.flogger + flogger-log4j-backend + ${flogger.version} + +``` + > Note: the dependency on `flogger-system-backend` is only required to be included when the binary is run. If you have a modularized build, you can From 5da6d9439be249e76a7c33a58988c6ddcb3b970b Mon Sep 17 00:00:00 2001 From: Cosmin Lehene Date: Mon, 3 Dec 2018 09:54:07 -0800 Subject: [PATCH 2/2] Added Maven example --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 52143959..b558d66a 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,39 @@ All code that uses flogger should depend on: com.google.flogger flogger-log4j-backend ${flogger.version} + runtime ``` +Optionally + +```xml + + com.google.flogger + flogger-log4j-backend + ${google.flogger.version} + runtime + + + log4j + log4j + ${log4j.version} + + + com.sun.jmx + jmxri + + + com.sun.jdmk + jmxtools + + + javax.jms + jms + + + +``` > Note: the dependency on `flogger-system-backend` is only required to be included when the binary is run. If you have a modularized build, you can