Java slf4j Logger getErrorMsg(String format, Object[] argArray)

Here you can find the source of getErrorMsg(String format, Object[] argArray)

Description

get Error Msg

License

Apache License

Declaration

public static String getErrorMsg(String format, Object[] argArray) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;

public class Main {
    public static String getErrorMsg(String format, Object[] argArray) {
        FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
        return ft.getMessage();
    }/*from   ww w .  j  ava  2 s  .c om*/

    public static String getErrorMsg(String format, Object arg) {
        FormattingTuple ft = MessageFormatter.format(format, arg);
        return ft.getMessage();
    }
}

Related

  1. format(final String pattern, final @Nullable Object... arguments)
  2. format(String format, Object... args)
  3. format(String messagePattern, Object... args)
  4. get(Class clazz)
  5. getClassLogger()
  6. getIntValue(String strVal, int defVal)
  7. getLog(Class clazz)
  8. getLogger()
  9. getLogger()