Skip to content

Commit

Permalink
revert Util.report methods removed by mistake
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Feb 5, 2024
1 parent da91e4f commit c52da92
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions slf4j-api/src/main/java/org/slf4j/helpers/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,28 @@ public static Class<?> getCallingClass() {
return trace[i + 2];
}

// private static final void report(String msg, Throwable t) {
// System.err.println(msg);
// System.err.println("Reported exception:");
// t.printStackTrace();
// }
//
// static final private void report(String msg) {
// System.err.println("SLF4J: " + msg);
// }
/**
* See {@link Reporter#error(String, Throwable)} class for alternative.
*
* @deprecated replaced by the {@link Reporter#error(String, Throwable)} method.
* @param msg message to print
* @param t throwable to print
*/
static final public void report(String msg, Throwable t) {
System.err.println(msg);
System.err.println("Reported exception:");
t.printStackTrace();
}

/**
* See {@link Reporter} class for alternatives.
*
* @deprecated replaced by one of {@link Reporter#info(String)},
* {@link Reporter#warn(String)} or {@link Reporter#error(String)} methods.
* @param msg message to print
*/
static final public void report(String msg) {
System.err.println("SLF4J: " + msg);
}

}

0 comments on commit c52da92

Please sign in to comment.