Class Log
java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.Log
Very simple logging support.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classImplements the default loader logger.static interfaceDefines an interface for logging in the EASy loader. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs an error.static voidLogs an error with exception.static Log.LoaderLoggerReturns the logger instance.static voidLogs an information message.static voidsetLogger(Log.LoaderLogger newLogger) Defines a new logger instance.static voidLogs a warning.static voidEmits a warning to the console and adds the message of the givenexception.
-
Field Details
-
logger
-
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
getLogger
Returns the logger instance.- Returns:
- the logger instance
-
setLogger
Defines a new logger instance.- Parameters:
newLogger- the new logger instance (ignored if null)
-
error
Logs an error.- Parameters:
error- the error text
-
error
Logs an error with exception.- Parameters:
error- the error textexception- the exception to be added
-
warn
Logs a warning.- Parameters:
warning- the warning text
-
warn
Emits a warning to the console and adds the message of the givenexception.- Parameters:
warning- the warning textexception- the exception to be added
-
info
Logs an information message.- Parameters:
msg- the message to be logged
-