public class ConfigureLog4jAction extends ConfluenceActionSupport
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.
Modifier and Type | Class and Description |
---|---|
static class |
ConfigureLog4jAction.LoggingConfigEntry
Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
ConfigureLog4jAction() |
Modifier and Type | Method and Description |
---|---|
String |
add()
Add a new entry to the Log4j Configuration.
|
String |
changeProfile() |
String |
changeProfiling() |
String |
delete() |
String |
execute() |
List |
getEntries() |
List<String> |
getLevelTypes() |
boolean |
isDiagnosticEnabled() |
boolean |
isHibernateLoggingEnabled() |
boolean |
isPermitted() |
boolean |
isProfilingEnabled() |
String |
save() |
void |
setClassNames(String[] classNames) |
void |
setEntries(List<ConfigureLog4jAction.LoggingConfigEntry> entries) |
void |
setExtraClassName(String extraClassName) |
void |
setExtraLevelName(String extraLevelName) |
void |
setLevelNames(String[] levelNames) |
void |
setProfileName(String profileName) |
void |
setProfilingOn(boolean buttonValue) |
void |
setToDeleteName(String toDeleteName) |
String |
turnOffHibernateLogging()
Turns off Hibernate Logging (SQL queries will not be output)
|
String |
turnOnHibernateLogging()
Turns on Hibernate Logging (both SQL queries and the parameters will now be output)
|
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public String execute()
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
public String changeProfiling()
public void setToDeleteName(String toDeleteName)
public void setProfilingOn(boolean buttonValue)
public String delete()
public String save()
public String add()
public List getEntries()
public void setEntries(List<ConfigureLog4jAction.LoggingConfigEntry> entries)
public void setClassNames(String[] classNames)
public void setLevelNames(String[] levelNames)
public void setExtraClassName(String extraClassName)
public void setExtraLevelName(String extraLevelName)
public String turnOnHibernateLogging()
public String turnOffHibernateLogging()
public boolean isHibernateLoggingEnabled()
public void setProfileName(String profileName)
public String changeProfile()
public boolean isProfilingEnabled()
public boolean isDiagnosticEnabled()
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
Copyright © 2003–2017 Atlassian. All rights reserved.