Logging.log(Exception)
parent
004d9d6115
commit
9c3cc05a95
|
@ -82,6 +82,11 @@ public class Logging {
|
||||||
log(LogLevel.INFO,message,args);
|
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 {
|
static {
|
||||||
liveStream = System.out;
|
liveStream = System.out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue