Skip to content

Commit afcb8c0

Browse files
committed
added method onWarnEvent() which will default to onErrorEvent if not implemented
1 parent 28bed58 commit afcb8c0

File tree

1 file changed

+11
-1
lines changed
  • quickfixj-core/src/main/java/quickfix

1 file changed

+11
-1
lines changed

quickfixj-core/src/main/java/quickfix/Log.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,20 @@ public interface Log {
5151
void onEvent(String text);
5252

5353
/**
54-
* Logs an session error event.
54+
* Logs a session error event.
5555
*
5656
* @param text the event description
5757
*/
5858
void onErrorEvent(String text);
5959

60+
/**
61+
* Logs a session warning event.
62+
* Logs a session error event if not implemented.
63+
*
64+
* @param text the event description
65+
*/
66+
default void onWarnEvent(String text) {
67+
onErrorEvent(text);
68+
}
69+
6070
}

0 commit comments

Comments
 (0)