Class InstallationLogger

  • All Implemented Interfaces:
    org.slf4j.Logger

    public final class InstallationLogger
    extends Object
    implements org.slf4j.Logger
    Shimmed logger. If debug is enabled there is no difference, otherwise warn and above goes to stdout. If debug is enabled everything is logged but warn and above still go to stdout (to allow the log to go to a file).
    • Field Detail

      • encapsulated

        private final org.slf4j.Logger encapsulated
        The 'real' logger.
      • pat

        private final Pattern pat
        Pattern to change {{} to %s.
    • Constructor Detail

      • InstallationLogger

        private InstallationLogger​(org.slf4j.Logger parent)
        Constructor.
        Parameters:
        parent - - logger to encapsulate.
    • Method Detail

      • format

        private void format​(@Nullable
                            org.slf4j.event.Level level,
                            @Nonnull
                            String format,
                            Object arg)
        Convert format and output.
        Parameters:
        level - logging level
        format - the format to use
        arg - the argument
      • format

        private void format​(@Nullable
                            org.slf4j.event.Level level,
                            String format,
                            Object arg1,
                            Object arg2)
        Convert format and output.
        Parameters:
        level - logging level
        format - the format to use
        arg1 - the first argument
        arg2 - the second argument
      • format

        private void format​(@Nullable
                            org.slf4j.event.Level level,
                            String format,
                            Object... arguments)
        Convert format and output.
        Parameters:
        level - logging level
        format - the format to use
        arguments - the arguments
      • getName

        public String getName()
        Specified by:
        getName in interface org.slf4j.Logger
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.slf4j.Logger
      • trace

        public void trace​(String msg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object arg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object... arguments)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String msg,
                          Throwable t)
        Specified by:
        trace in interface org.slf4j.Logger
      • isTraceEnabled

        public boolean isTraceEnabled​(org.slf4j.Marker marker)
        Specified by:
        isTraceEnabled in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object... argArray)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        trace in interface org.slf4j.Logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.slf4j.Logger
      • debug

        public void debug​(String msg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object arg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object... arguments)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String msg,
                          Throwable t)
        Specified by:
        debug in interface org.slf4j.Logger
      • isDebugEnabled

        public boolean isDebugEnabled​(org.slf4j.Marker marker)
        Specified by:
        isDebugEnabled in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object... arguments)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        debug in interface org.slf4j.Logger
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.slf4j.Logger
      • info

        public void info​(String msg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object arg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object... arguments)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String msg,
                         Throwable t)
        Specified by:
        info in interface org.slf4j.Logger
      • isInfoEnabled

        public boolean isInfoEnabled​(org.slf4j.Marker marker)
        Specified by:
        isInfoEnabled in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String msg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object arg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object... arguments)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String msg,
                         Throwable t)
        Specified by:
        info in interface org.slf4j.Logger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.slf4j.Logger
      • warn

        public void warn​(String msg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object arg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object... arguments)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String msg,
                         Throwable t)
        Specified by:
        warn in interface org.slf4j.Logger
      • isWarnEnabled

        public boolean isWarnEnabled​(org.slf4j.Marker marker)
        Specified by:
        isWarnEnabled in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String msg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object arg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object... arguments)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String msg,
                         Throwable t)
        Specified by:
        warn in interface org.slf4j.Logger
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.slf4j.Logger
      • error

        public void error​(String msg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object arg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object... arguments)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String msg,
                          Throwable t)
        Specified by:
        error in interface org.slf4j.Logger
      • isErrorEnabled

        public boolean isErrorEnabled​(org.slf4j.Marker marker)
        Specified by:
        isErrorEnabled in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object... arguments)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        error in interface org.slf4j.Logger
      • getLogger

        public static org.slf4j.Logger getLogger​(Class<?> clazz)
        Replacement for LoggerFactory.getLogger(Class).
        Parameters:
        clazz - what to log
        Returns:
        a logger