Class ConfigureLog4jAction

  • All Implemented Interfaces:
    WebInterface, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable

    @Deprecated
    public class ConfigureLog4jAction
    extends ConfluenceActionSupport
    Deprecated.
    since 7.16 replaced by ConfigureLoggingAction
    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.

    TODO: put the logic here into a service or manager layer -- it shouldn't be in an action.

    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigureLog4jAction

        public ConfigureLog4jAction()
        Deprecated.
    • Method Detail

      • execute

        public String execute()
        Deprecated.
        Specified by:
        execute in interface com.opensymphony.xwork.Action
        Overrides:
        execute in class com.opensymphony.xwork.ActionSupport
      • changeProfiling

        public String changeProfiling()
        Deprecated.
      • setToDeleteName

        public void setToDeleteName​(String toDeleteName)
        Deprecated.
      • setProfilingOn

        public void setProfilingOn​(boolean buttonValue)
        Deprecated.
      • getLevelTypes

        public List<String> getLevelTypes()
        Deprecated.
      • delete

        public String delete()
        Deprecated.
      • save

        public String save()
        Deprecated.
      • add

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

        public List getEntries()
        Deprecated.
      • setClassNames

        public void setClassNames​(String[] classNames)
        Deprecated.
      • setLevelNames

        public void setLevelNames​(String[] levelNames)
        Deprecated.
      • setExtraClassName

        public void setExtraClassName​(String extraClassName)
        Deprecated.
      • setExtraLevelName

        public void setExtraLevelName​(String extraLevelName)
        Deprecated.
      • turnOnHibernateLogging

        public String turnOnHibernateLogging()
        Deprecated.
        Turns on Hibernate Logging (both SQL queries and the parameters will now be output)
        Returns:
        action result
      • turnOffHibernateLogging

        public String turnOffHibernateLogging()
        Deprecated.
        Turns off Hibernate Logging (SQL queries will not be output)
        Returns:
        action result
      • isHibernateLoggingEnabled

        public boolean isHibernateLoggingEnabled()
        Deprecated.
      • setProfileName

        public void setProfileName​(String profileName)
        Deprecated.
      • changeProfile

        public String changeProfile()
        Deprecated.
      • isProfilingEnabled

        public boolean isProfilingEnabled()
        Deprecated.
      • isDiagnosticEnabled

        public boolean isDiagnosticEnabled()
        Deprecated.