Class ConfigureLog4jAction
- java.lang.Object
-
- com.opensymphony.xwork.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.admin.actions.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 byConfigureLoggingActionAllows 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
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigureLog4jAction.LoggingConfigEntryDeprecated.Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ConfigureLog4jAction()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringadd()Deprecated.Add a new entry to the Log4j Configuration.StringchangeProfile()Deprecated.StringchangeProfiling()Deprecated.Stringdelete()Deprecated.Stringexecute()Deprecated.ListgetEntries()Deprecated.List<String>getLevelTypes()Deprecated.booleanisDiagnosticEnabled()Deprecated.booleanisHibernateLoggingEnabled()Deprecated.booleanisPermitted()Deprecated.booleanisProfilingEnabled()Deprecated.Stringsave()Deprecated.voidsetClassNames(String[] classNames)Deprecated.voidsetEntries(List<ConfigureLog4jAction.LoggingConfigEntry> entries)Deprecated.voidsetExtraClassName(String extraClassName)Deprecated.voidsetExtraLevelName(String extraLevelName)Deprecated.voidsetLevelNames(String[] levelNames)Deprecated.voidsetProfileName(String profileName)Deprecated.voidsetProfilingOn(boolean buttonValue)Deprecated.voidsetToDeleteName(String toDeleteName)Deprecated.StringturnOffHibernateLogging()Deprecated.Turns off Hibernate Logging (SQL queries will not be output)StringturnOnHibernateLogging()Deprecated.Turns on Hibernate Logging (both SQL queries and the parameters will now be output)-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Method Detail
-
execute
public String execute()
Deprecated.- Specified by:
executein interfacecom.opensymphony.xwork.Action- Overrides:
executein classcom.opensymphony.xwork.ActionSupport
-
changeProfiling
public String changeProfiling()
Deprecated.
-
setToDeleteName
public void setToDeleteName(String toDeleteName)
Deprecated.
-
setProfilingOn
public void setProfilingOn(boolean buttonValue)
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.
-
setEntries
public void setEntries(List<ConfigureLog4jAction.LoggingConfigEntry> entries)
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.
-
isPermitted
public boolean isPermitted()
Deprecated.- Overrides:
isPermittedin classConfluenceActionSupport
-
-