Package com.github.javaparser.utils
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 :-)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Log.Adapter
static class
Log.SilentAdapter
This adapter logs nothing.static class
Log.StandardOutStandardErrorAdapter
This adapter logs to standard out and standard error.
-
Constructor Summary
Constructors Constructor Description Log()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
error(String format, Supplier<Object>... args)
For drawing attention to an error that you don't have an exception for.static void
error(Throwable throwable)
For drawing attention to an error.static void
error(Throwable throwable, String format, Supplier<Object>... args)
For drawing attention to an error that you don't have an exception for.static void
info(String format, Supplier<Object>... args)
For logging things that are nice to see scrolling by.static void
setAdapter(Log.Adapter adapter)
Change how logging is handled.static void
trace(String format, Supplier<Object>... args)
For logging information that may help solving a problem.
-
-
-
Method Detail
-
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.
-
-