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 interfaceLog.Adapterstatic classLog.SilentAdapterThis adapter logs nothing.static classLog.StandardOutStandardErrorAdapterThis 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 voiderror(String format, Supplier<Object>... args)For drawing attention to an error that you don't have an exception for.static voiderror(Throwable throwable)For drawing attention to an error.static voiderror(Throwable throwable, String format, Supplier<Object>... args)For drawing attention to an error that you don't have an exception for.static voidinfo(String format, Supplier<Object>... args)For logging things that are nice to see scrolling by.static voidsetAdapter(Log.Adapter adapter)Change how logging is handled.static voidtrace(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.
-
-