in case Graylog server wasn't available and now the log4j property file changes (with "watch"), the close method will fail on NPE. Here's the fix:
public class MyGelfAppender extends GelfAppender {
@Override
public void close() {
GelfSender x = this.getGelfSender();
if (x != null) {
x.close();
}
}
}
in case Graylog server wasn't available and now the log4j property file changes (with "watch"), the close method will fail on NPE. Here's the fix: