Mercurial Hosting > luan
diff src/goodjava/logger/LoggingEvent.java @ 1448:6fc083e1d08c
start logger
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 23 Feb 2020 18:14:32 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/goodjava/logger/LoggingEvent.java Sun Feb 23 18:14:32 2020 -0700 @@ -0,0 +1,17 @@ +package goodjava.logger; + + +public final class LoggingEvent { + public final GoodLogger logger; + public final int level; + public final String message; + public final Throwable throwable; + public final long time = System.currentTimeMillis(); + + LoggingEvent(GoodLogger logger,int level,String message,Throwable throwable) { + this.logger = logger; + this.level = level; + this.message = message; + this.throwable = throwable; + } +}