Logging.log(Exception)

thobaben_serialize
Harald Wolff 2016-09-08 18:52:53 +02:00
parent 004d9d6115
commit 9c3cc05a95
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ public class Logging {
log(LogLevel.INFO,message,args);
}
static public void log(Exception e){
log(LogLevel.ERROR,"An Exception occured: %s [%s]",e.getClass().getName(), e.getMessage());
e.printStackTrace();
}
static {
liveStream = System.out;
}