Class Log

java.lang.Object
com.github.javaparser.utils.Log

public class Log extends Object
To avoid dependencies on logging frameworks, we have invented yet another logging framework :-)

See a blog about this

  • Constructor Details

    • Log

      public Log()
  • Method Details

    • setAdapter

      public static void setAdapter(Log.Adapter adapter)
      Change how logging is handled. You can set your own implementation that forwards to your logging library.
    • trace

      @SafeVarargs public static void trace(String format, Supplier<Object>... args)
      For logging information that may help solving a problem.
    • info

      @SafeVarargs public static void info(String format, Supplier<Object>... args)
      For logging things that are nice to see scrolling by.
    • error

      public static void error(Throwable throwable)
      For drawing attention to an error.
    • error

      @SafeVarargs public static void error(Throwable throwable, String format, Supplier<Object>... args)
      For drawing attention to an error that you don't have an exception for.
    • error

      @SafeVarargs public static void error(String format, Supplier<Object>... args)
      For drawing attention to an error that you don't have an exception for.