source: src/main/java/genius/core/logging/ConsoleLogger.java

Last change on this file was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 692 bytes
Line 
1package genius.core.logging;
2
3import genius.core.events.NegotiationEvent;
4import genius.core.events.RecoverableSessionErrorEvent;
5import genius.core.listener.Listener;
6
7/**
8 * Logs additional info to the console that normally would be ignored.
9 *
10 */
11public class ConsoleLogger implements Listener<NegotiationEvent> {
12
13 @Override
14 public void notifyChange(NegotiationEvent e) {
15 if (e instanceof RecoverableSessionErrorEvent) {
16 RecoverableSessionErrorEvent e1 = (RecoverableSessionErrorEvent) e;
17 System.err.println("There is an issue with " + e1.getParty() + " (" + e1.getParty().getParty()
18 + ") in session " + e1.getSession());
19 e1.getException().printStackTrace();
20 }
21
22 }
23
24}
Note: See TracBrowser for help on using the repository browser.