Class Log
java.lang.Object
com.petarmc.lib.log.Log
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PLoggerReturns a logger instance for the specified class with a prefix.static PLoggerReturns a logger instance with the specified name and prefix.static voidInjects a custom logger to be returned by allget(Class, String)calls.
-
Field Details
-
injected
-
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
inject
Injects a custom logger to be returned by allget(Class, String)calls.- Parameters:
logger- the logger to inject
-
get
-
get
-