Class MessageRouter
java.lang.Object
org.spongepowered.asm.util.logging.MessageRouter
Logging router for objects which may need to log messages during standard
runtime or during Annotation Processor sessions. Provides a single interface
to obtain a
Messager to write log entries in either environment.-
Method Summary
Modifier and TypeMethodDescriptionstatic MessagerGet the current messager.static voidsetMessager(Messager messager) Set the messager to use, this should only be called by the AP
-
Method Details
-
getMessager
Get the current messager. If no messager is available the returned Messager sinks messages to a log4j2 logger -
setMessager
Set the messager to use, this should only be called by the AP- Parameters:
messager- new messager to sink messages, can be null to revert to log4j2 logging
-