Class EASyLoggerFactory.EASyLogger

java.lang.Object
net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger
Enclosing class:
EASyLoggerFactory

public class EASyLoggerFactory.EASyLogger extends Object
Logger instance for logging in plug-ins of the EASy-Producer.
Author:
Sass, El-Sharkawy
  • Field Details

    • bundleName

      private String bundleName
    • clazz

      private Class<?> clazz
  • Constructor Details

    • EASyLogger

      private EASyLogger(Class<?> clazz, String bundleName)
      Sole constructor of this class. Creates an wrapper/adapter which uses the ILogger instance of the EASyLoggerFactory.
      Parameters:
      clazz - The class where the logging is done
      bundleName - The name of the plug-in containing the logged class (can be null).
  • Method Details

    • debug

      public void debug(String msg)
      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

      public void debug(Object msg)
      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

      public void debug(Object msg1, Object msg2)
      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

      public void debug(Object msg1, Object msg2, Object msg3)
      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

      public void debug(Object msg1, Object msg2, Object msg3, Object msg4)
      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

      public void debug(Object msg1, Object msg2, Object msg3, Object msg4, Object... msg5)
      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

      public void info(String msg)
      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

      public void warn(String msg)
      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

      public void error(String msg)
      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

      public void exception(Exception 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()