Mercurial Hosting > luan
annotate src/goodjava/logging/Logger.java @ 1448:6fc083e1d08c
start logger
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 23 Feb 2020 18:14:32 -0700 |
parents | 27efb1fcbcb5 |
children | 219f2b937f2b |
rev | line source |
---|---|
1402
27efb1fcbcb5
move luan.lib to goodjava
Franklin Schmidt <fschmidt@gmail.com>
parents:
1339
diff
changeset
|
1 package goodjava.logging; |
1337 | 2 |
1339 | 3 // Because slf4j is an overcomplicated mess that caches loggers when it shouldn't. |
1337 | 4 |
5 public interface Logger { | |
6 public void error(String msg); | |
7 public void error(String msg,Throwable t); | |
8 public void warn(String msg); | |
9 public void warn(String msg,Throwable t); | |
10 public void info(String msg); | |
11 public void info(String msg,Throwable t); | |
1448 | 12 public boolean isInfoEnabled(); |
1337 | 13 public void debug(String msg); |
14 public void debug(String msg,Throwable t); | |
1448 | 15 public boolean isDebugEnabled(); |
1337 | 16 } |