/** * Logs a warning message; uses "{}" format anchors. Pass {@link Throwable}s in last parameter for special handling. * * @param format The warning message format * @param arg1 First object to format * @param arg2 Second object to format */ public static void warn( final String format, final Object arg1, final Object arg2 ) { SINK.warn( format( format( format, arg1 ), arg2 ), arg2 instanceof Throwable ? (Throwable) arg2 : null ); }
/** * Logs a debug message; uses "{}" format anchors. Pass {@link Throwable}s in last parameter for special handling. * * @param format The debug message format * @param arg1 First object to format * @param arg2 Second object to format */ public static void debug( final String format, final Object arg1, final Object arg2 ) { if ( DEBUG_ENABLED ) { SINK.debug( format( format( format, arg1 ), arg2 ), arg2 instanceof Throwable ? (Throwable) arg2 : null ); } }