Package nl.vpro.jmx
Class MBeans2
java.lang.Object
nl.vpro.jmx.MBeans2
See
MBeans
but supporting log4j2.- Since:
- 2.12
- Author:
- Michiel Meeuwissen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringSupplierSimpleLogger
multiLine
(org.apache.logging.log4j.Logger log) static StringSupplierSimpleLogger
static String
returnMultilineString
(@NonNull org.apache.logging.log4j.Logger log, @NonNull Consumer<StringSupplierSimpleLogger> logger)
-
Constructor Details
-
MBeans2
public MBeans2()
-
-
Method Details
-
returnMultilineString
public static String returnMultilineString(@NonNull org.apache.logging.log4j.Logger log, @NonNull Consumer<StringSupplierSimpleLogger> logger) -
multiLine
- Parameters:
log
- Logger instance to log too- Returns:
- a
StringBuilderSimpleLogger
representing multiple lines actually aStringBuilderSimpleLogger
-
multiLine
public static StringSupplierSimpleLogger multiLine(org.apache.logging.log4j.Logger log, String message, Object... args) - Parameters:
log
- Logger instance to log toomessage
- First line of the string (logged as info)args
- The arguments of the first line- Returns:
- a
StringBuilderSimpleLogger
representing multiple lines actually aStringBuilderSimpleLogger
-