Class LoggerConfigBean

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class LoggerConfigBean
    extends FCContextBean
    Bean for configuring loggers & appenders
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • LoggerConfigBean

        public LoggerConfigBean()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getAppenderNames

        public List<String> getAppenderNames()
      • isAnyAppenderModified

        public boolean isAnyAppenderModified()
      • isAnyLoggerModified

        public boolean isAnyLoggerModified()
      • getAppenderDisplayName

        public String getAppenderDisplayName​(String appenderName)
      • isAppenderSelectionDisabled

        public boolean isAppenderSelectionDisabled​(ILogger logger,
                                                   String appenderName)
      • isNewLogger

        public boolean isNewLogger()
      • isFileAppender

        public boolean isFileAppender​(IAppender appender)
      • downloadLogFile

        public org.primefaces.model.StreamedContent downloadLogFile()
                                                             throws javax.faces.event.AbortProcessingException
        Throws:
        javax.faces.event.AbortProcessingException
      • isNewAppender

        public boolean isNewAppender()
      • isLoggerEditMode

        public boolean isLoggerEditMode()
      • setLoggerEditMode

        public void setLoggerEditMode​(boolean loggerEditMode)
      • isAppenderEditMode

        public boolean isAppenderEditMode()
      • setAppenderEditMode

        public void setAppenderEditMode​(boolean appenderEditMode)
      • getSelectedAppender

        public IAppender getSelectedAppender()
      • selectAppender

        public void selectAppender​(IAppender selectedAppender)
      • unselectAppender

        public void unselectAppender()
      • getSelectedLogger

        public ILogger getSelectedLogger()
      • selectLogger

        public void selectLogger​(ILogger selectedLogger)
      • unselectLogger

        public void unselectLogger()
      • createNewLogger

        public void createNewLogger()
      • createNewAppender

        public void createNewAppender​(EAppenderType type)
      • saveLoggers

        public void saveLoggers()
      • saveLogger

        public void saveLogger​(ILogger logger)
        Updates an existing ILogger
        Parameters:
        logger - ILogger
      • removeLogger

        public void removeLogger​(ILogger logger)
        Removes the given logger from the properties configuration
        Parameters:
        logger - ILogger to be removed
      • saveAppenders

        public void saveAppenders()
      • saveAppender

        public void saveAppender​(IAppender appender)
      • removeAppender

        public void removeAppender​(IAppender appender)