Package org.apache.logging.log4j.message

Examples of org.apache.logging.log4j.message.MessageFormatMessage


    log(Level.FATAL, message, params);
  }

  /* GENERIC */
  public void log(Level logLevel, String message, Object... params) {
    LogManager.getLogger(Defaults.MOD).log(logLevel, new MessageFormatMessage(String.format(message, params), params));
  }
View Full Code Here


    public static boolean isObfuscated() {
        return IS_OBFUSCATED;
    }

    public static void log(Level level, String msg, Object... args) {
        LogManager.getLogger(Railcraft.MOD_ID).log(level, new MessageFormatMessage(msg, args));
    }
View Full Code Here

        if (lines < oldtrace.length) {
            StackTraceElement[] newtrace = new StackTraceElement[lines];
            System.arraycopy(oldtrace, 0, newtrace, 0, newtrace.length);
            error.setStackTrace(newtrace);
        }
        LogManager.getLogger(Railcraft.MOD_ID).log(level, new MessageFormatMessage(msg, args), error);
    }
View Full Code Here

TOP

Related Classes of org.apache.logging.log4j.message.MessageFormatMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.