Package nl.vpro.jmx

Class MBeans2

java.lang.Object
nl.vpro.jmx.MBeans2

public class MBeans2 extends Object
See MBeans but supporting log4j2.
Since:
2.12
Author:
Michiel Meeuwissen
  • Constructor Details

    • MBeans2

      public MBeans2()
  • Method Details

    • returnMultilineString

      public static String returnMultilineString(@NonNull org.apache.logging.log4j.Logger log, @NonNull Consumer<nl.vpro.logging.simple.StringSupplierSimpleLogger> logger)
    • multiLine

      public static nl.vpro.logging.simple.StringSupplierSimpleLogger multiLine(org.apache.logging.log4j.Logger log)
      Parameters:
      log - Logger instance to log too
      Returns:
      a StringBuilderSimpleLogger representing multiple lines actually a StringBuilderSimpleLogger
    • multiLine

      public static nl.vpro.logging.simple.StringSupplierSimpleLogger multiLine(org.apache.logging.log4j.Logger log, String message, Object... args)
      Parameters:
      log - Logger instance to log too
      message - First line of the string (logged as info)
      args - The arguments of the first line
      Returns:
      a StringBuilderSimpleLogger representing multiple lines actually a StringBuilderSimpleLogger