diff options
author | romangraef <roman.graef@gmail.com> | 2018-02-04 19:42:23 +0100 |
---|---|---|
committer | romangraef <roman.graef@gmail.com> | 2018-02-04 19:42:23 +0100 |
commit | c93de97214935294c8633cdff4260d9941d748c1 (patch) | |
tree | c548d527e9d1333ecc22b72d24ac3710bd6bbe1c /src/main/java/de/romjaki/logger/LoggedEvent.java | |
parent | c032305e154d75aa06e26506bed0a1a64eef9fdb (diff) | |
download | Logging-c93de97214935294c8633cdff4260d9941d748c1.tar.gz Logging-c93de97214935294c8633cdff4260d9941d748c1.tar.bz2 Logging-c93de97214935294c8633cdff4260d9941d748c1.zip |
Made it work. Also more modularity.
Diffstat (limited to 'src/main/java/de/romjaki/logger/LoggedEvent.java')
-rw-r--r-- | src/main/java/de/romjaki/logger/LoggedEvent.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/de/romjaki/logger/LoggedEvent.java b/src/main/java/de/romjaki/logger/LoggedEvent.java new file mode 100644 index 0000000..143ab0c --- /dev/null +++ b/src/main/java/de/romjaki/logger/LoggedEvent.java @@ -0,0 +1,23 @@ +package de.romjaki.logger; + +/** + * Created by RGR on 17.08.2017. + */ +public class LoggedEvent extends LogEvent { + private final Level level; + private final String text; + + public LoggedEvent(Class<?> clazz, Level level, String text) { + super(clazz); + this.level = level; + this.text = text; + } + + public Level getLevel() { + return level; + } + + public String getText() { + return text; + } +} |