Class BMNLogger
java.lang.Object
de.bluecolored.bluemap.core.logger.Logger
de.bluecolored.bluemap.core.logger.AbstractLogger
com.technicjelle.BMUtils.BMNative.BMNLogger
- All Implemented Interfaces:
AutoCloseable
A logger for BlueMap Native Addons
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBMNLogger(ClassLoader classLoader) Creates a new logger for a BlueMap Native AddonCreates a new logger for a BlueMap Addon -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug messagevoidLogs an error messagevoidLogs an error message with an exceptionvoidLogs an info messagevoidlogWarning(String message) Logs a warning messageMethods inherited from class AbstractLogger
clearNoFloodLog, noFloodDebug, noFloodError, noFloodInfo, noFloodWarning, removeNoFloodKeyMethods inherited from class Logger
close, combine, combine, file, file, file, file, logError, noFloodDebug, noFloodError, noFloodError, noFloodInfo, noFloodWarning, removeNoFloodMessage, stdOut, stdOut
-
Constructor Details
-
BMNLogger
Creates a new logger for a BlueMap Native AddonIf you're not using BlueMap itself as the addon loader, please use
BMNLogger(java.lang.String)instead- Parameters:
classLoader- The class loader of the addon- Throws:
IOException- If the addon ID could not be retrieved from thebluemap.addon.jsonfile
-
BMNLogger
Creates a new logger for a BlueMap AddonIf you're using BlueMap itself as the addon loader, please use
BMNLogger(java.lang.ClassLoader)instead- Parameters:
addonID- The ID of this addon, for use as the prefix of the log messages
-
-
Method Details
-
logError
-
logError
-
logWarning
Logs a warning message- Specified by:
logWarningin classLogger- Parameters:
message- The message to log
-
logInfo
-
logDebug
-