Class ConfigureLog4jAction

  • All Implemented Interfaces:
    JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

    public class ConfigureLog4jAction
    extends ViewLog4jAction
    Allows runtime configuration of Log4j. This class has several entry points:
    • execute: used whilst viewing the page
    • save: invoked for performing updates to the list of Loggers
    • add: invoked when adding a new Logger
    • add: called when removing a Logger
    There are additionally several Hibernate logging related entry points that possibly should be refactored out. This class possibly has too much responsibility at this point, and possibly needs refactoring. It is possible that synchronization errors could occur as the result of switching log levels as a log statement is being generated.
    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigureLog4jAction

        public ConfigureLog4jAction()
    • Method Detail

      • delete

        public String delete()
      • add

        public String add()
        Add a new entry to the Log4j Configuration.
        Returns:
        action result
      • setToDeleteName

        public void setToDeleteName​(String toDeleteName)
      • setClassName

        public void setClassName​(String className)
      • setLevelName

        public void setLevelName​(String levelName)
      • setExtraClassName

        public void setExtraClassName​(String extraClassName)
      • setExtraLevelName

        public void setExtraLevelName​(String extraLevelName)
      • isPermitted

        public boolean isPermitted()