Package net.ssehub.easy.basics.logger
Class EASyLoggerFactory.EASyLogger
java.lang.Object
net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger
- Enclosing class:
EASyLoggerFactory
Logger instance for logging in plug-ins of the EASy-Producer.
- Author:
- Sass, El-Sharkawy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEASyLogger(Class<?> clazz, String bundleName) Sole constructor of this class. -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a DEBUG message.voidLog a DEBUG message.voidLog a DEBUG message.voidLog a DEBUG message.voidLog a DEBUG message.voidLog an DEBUG message.voidLog an ERROR message.voidLog an EXCEPTION message.voidLog a INFO message.private voidtrace()voidLog a WARN message.
-
Field Details
-
bundleName
-
clazz
-
-
Constructor Details
-
EASyLogger
Sole constructor of this class. Creates an wrapper/adapter which uses theILoggerinstance of theEASyLoggerFactory.- Parameters:
clazz- The class where the logging is donebundleName- The name of the plug-in containing the logged class (can be null).
-
-
Method Details
-
debug
Log an DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg- The string message (or a key in the message catalog)
-
debug
Log a DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg- The message (msg.toString()will be used for logging) Should not be null.
-
debug
Log a DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg1- The message (msg1.toString()will be used for logging) Should not be null.msg2- The message (msg2.toString()will be used for logging)
-
debug
Log a DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg1- The message (msg1.toString()will be used for logging) Should not be null.msg2- The message (msg2.toString()will be used for logging)msg3- The message (msg3.toString()will be used for logging)
-
debug
Log a DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg1- The message (msg1.toString()will be used for logging) Should not be null.msg2- The message (msg2.toString()will be used for logging)msg3- The message (msg3.toString()will be used for logging)msg4- The message (msg4.toString()will be used for logging)
-
debug
Log a DEBUG message. If the logger is currently enabled for the DEBUG message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg1- The message (msg1.toString()will be used for logging)msg2- The message (msg2.toString()will be used for logging)msg3- The message (msg3.toString()will be used for logging)msg4- The message (msg4.toString()will be used for logging)msg5- The message (msg5.toString()will be used for logging)
-
info
Log a INFO message. If the logger is currently enabled for the INFO message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg- The string message (or a key in the message catalog)
-
warn
Log a WARN message. If the logger is currently enabled for the WARN message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg- The string message (or a key in the message catalog)
-
error
Log an ERROR message. If the logger is currently enabled for the ERROR message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
msg- The string message (or a key in the message catalog)
-
exception
Log an EXCEPTION message. If the logger is currently enabled for the EXCEPTION message level then the given message is forwarded to all the registered output Handler objects.- Parameters:
exception- The exception message
-
trace
private void trace()
-