public class EPLogUtil {
// This class has no logger of its own; it uses loggers passed to it.
- private static EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger();
+ private static final EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger();
/**
* Formats and writes a message to the error log with the class name and the
*/
private static String formatMessage(String message, Object... args) {
StringBuilder sbFormattedMessage = new StringBuilder();
- if (args != null && args.length > 0 && message != null && message != "") {
+ if (args != null && args.length > 0 && message != null && !message.equals("")) {
MessageFormat mf = new MessageFormat(message);
sbFormattedMessage.append(mf.format(args));
} else {