diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/mamago/logging/LoggerTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/java/org/mamago/logging/LoggerTest.java b/src/test/java/org/mamago/logging/LoggerTest.java new file mode 100644 index 0000000..3a1efbd --- /dev/null +++ b/src/test/java/org/mamago/logging/LoggerTest.java @@ -0,0 +1,17 @@ +package org.mamago.logging; + +import org.junit.jupiter.api.Test; + +public class LoggerTest { + final static Logger LOG = Logger.createLogger(); + + @Test + public void testLogger() { + System.out.println("header length = " + + ( 1 // Header length + + 1 // Thread name length + + LoggerTest.class.getName().length() + + 8 + 8 + 1 + "main".length() + 1)); + LOG.log(Logger.Level.INFO, "Log this {}").append(3).log(); + } +} |
