Class Log

  • Direct Known Subclasses:
    FileLogger, PrintWriterLog, YLogger

    public class Log
    extends Object
    Got the interface from apache-commons-logging. I need to switch because its not working in eclipse plugins correctly.
    Author:
    mikehummel
    • Field Detail

      • localTrace

        protected boolean localTrace
      • levelMapper

        protected static LevelMapper levelMapper
      • maxMsgSize

        protected static int maxMsgSize
    • Constructor Detail

      • Log

        public Log​(Object owner)
    • Method Detail

      • t

        public void t​(Object... msg)
        Log a message in trace, it will automatically append the objects if trace is enabled. Can Also add a trace. This is the local trace method. The trace will only written if the local trace is switched on.
        Parameters:
        msg -
      • d

        public void d​(Object... msg)
        Log a message in debug, it will automatically append the objects if debug is enabled. Can Also add a trace.
        Parameters:
        msg -
      • i

        public void i​(Object... msg)
        Log a message in info, it will automatically append the objects if debug is enabled. Can Also add a trace.
        Parameters:
        msg -
      • w

        public void w​(Object... msg)
        Log a message in warn, it will automatically append the objects if debug is enabled. Can Also add a trace.
        Parameters:
        msg -
      • e

        public void e​(Object... msg)
        Log a message in error, it will automatically append the objects if debug is enabled. Can Also add a trace.
        Parameters:
        msg -
      • f

        public void f​(Object... msg)
        Log a message in info, it will automatically append the objects if debug is enabled. Can Also add a trace.
        Parameters:
        msg -
      • setLocalTrace

        public void setLocalTrace​(boolean localTrace)
      • isLocalTrace

        public boolean isLocalTrace()
      • getName

        public String getName()
      • getLog

        public static Log getLog​(Object owner)
      • update

        public void update()
      • isLevelEnabled

        public boolean isLevelEnabled​(Log.LEVEL level)
        Return if the given level is enabled. This function also uses the levelMapper to find the return value. Instead of the is...Enabled().
        Parameters:
        level -
        Returns:
        true if level is enabled
      • close

        public void close()
      • isStacktraceTrace

        public static boolean isStacktraceTrace()
      • setStacktraceTrace

        public static void setStacktraceTrace​(boolean stacktraceTrace)