gboat2.base.logging.action
类 LogConfigAction

java.lang.Object
  继承者 com.opensymphony.xwork2.ActionSupport
      继承者 gboat2.base.core.web.BaseActionSupport
          继承者 gboat2.base.logging.action.LogConfigAction
所有已实现的接口:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, IBaseActionSupport, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.ServletResponseAware, org.apache.struts2.osgi.interceptor.BundleContextAware, org.apache.struts2.osgi.interceptor.ServiceAware, org.apache.struts2.util.ServletContextAware

public class LogConfigAction
extends BaseActionSupport

作者:
zhangxj-a
另请参见:
序列化表格

字段摘要
static String BUSI_LOG_CONFIG_LOCATION
          业务日志地址LOG_CONFIG_LOCATION
static String BUSINESS_LEVEL
          业务日志级别key
static String LOG4J_FILENAME
          文件名称
static String LOG4J_ROOTLOGGER
          系统日志级别key
static String SYS_LOG_CONFIG_LOCATION
          系统日志地址LOG_CONFIG_LOCATION
static String SYS_LOG_DIRECTORY
          系统日志地址DIRECTORY
static String WEB_APP_ROOT
          获得WEB_APP_ROOT
 
从类 gboat2.base.core.web.BaseActionSupport 继承的字段
container, context, CURRENT_BUNDLE_RES_LOCATION, devMode, flatResultLayout, go, MIN_SUFFIX, model, nameSeparator, osgiHost, page, request, response, SID, sortDirection, sortField
 
从类 com.opensymphony.xwork2.ActionSupport 继承的字段
LOG
 
从接口 com.opensymphony.xwork2.Action 继承的字段
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
构造方法摘要
LogConfigAction()
           
 
方法摘要
 String apply()
          使修改的系统日志级别生效
 String execute()
           
 String getBusinessLevel()
           
 String getProperties()
           
 String getSystemLogRootLevel()
           
 String properties()
          业务,系统日志配置页面
 String saveLog4jConfig()
          更新log4j.properties
 void setBusinessLevel(String businessLevel)
           
 void setProperties(String properties)
           
 void setSystemLogRootLevel(String systemLogRootLevel)
           
 
从类 gboat2.base.core.web.BaseActionSupport 继承的方法
ajaxDelete, ajaxListData, ajaxSave, ajaxSaveReturn, delete, deleteModel, edit, executeListQuery, forward, get_M, get_MdId, getActionBundle, getBean, getBean, getDefaultAjaxDeleteUri, getDefaultAjaxSaveUri, getDefaultDeleteUri, getDefaultEditUri, getDefaultListUri, getDefaultSaveUri, getDefaultViewUri, getDomainClassAnnotationed, getDomainClassAnnotationedForList, getExtendForView, getListParameterMap, getMetadata, getModel, getPage, getPriCheckParams, getServiceAnnotationed, getSID, getSortDirection, getSortField, getUriPrefix, initEdit, initList, initSave, initView, invokeInitMethod, list, operationCheck, postDelete, postList, postSave, prepare, prepareEdit, prepareList, prepareModel, prepareView, putDebugInfoIfDevMode, registerEnumClassNotInEntry, save, saveModel, set_M, set_MdId, setAutowiredBeans, setAutowiredBeans, setBundleContext, setContainer, setDevMode, setFlatResultLayout, setGo, setModel, setNameSeparator, setPriCheckParams, setServices, setServletContext, setServletRequest, setServletResponse, setSID, setSortDirection, setSortField, setValue, view
 
从类 com.opensymphony.xwork2.ActionSupport 继承的方法
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

WEB_APP_ROOT

public static final String WEB_APP_ROOT
获得WEB_APP_ROOT


BUSI_LOG_CONFIG_LOCATION

public static final String BUSI_LOG_CONFIG_LOCATION
业务日志地址LOG_CONFIG_LOCATION

另请参见:
常量字段值

SYS_LOG_CONFIG_LOCATION

public static final String SYS_LOG_CONFIG_LOCATION
系统日志地址LOG_CONFIG_LOCATION

另请参见:
常量字段值

SYS_LOG_DIRECTORY

public static final String SYS_LOG_DIRECTORY
系统日志地址DIRECTORY

另请参见:
常量字段值

LOG4J_FILENAME

public static final String LOG4J_FILENAME
文件名称

另请参见:
常量字段值

BUSINESS_LEVEL

public static final String BUSINESS_LEVEL
业务日志级别key

另请参见:
常量字段值

LOG4J_ROOTLOGGER

public static final String LOG4J_ROOTLOGGER
系统日志级别key

另请参见:
常量字段值
构造方法详细信息

LogConfigAction

public LogConfigAction()
方法详细信息

getProperties

public String getProperties()

setProperties

public void setProperties(String properties)

getBusinessLevel

public String getBusinessLevel()

setBusinessLevel

public void setBusinessLevel(String businessLevel)

getSystemLogRootLevel

public String getSystemLogRootLevel()

setSystemLogRootLevel

public void setSystemLogRootLevel(String systemLogRootLevel)

execute

public String execute()
指定者:
接口 com.opensymphony.xwork2.Action 中的 execute
覆盖:
BaseActionSupport 中的 execute

properties

public String properties()
                  throws IOException
业务,系统日志配置页面

返回:
null
抛出:
IOException - 对response中的writer操作抛出检查异常IOException

saveLog4jConfig

public String saveLog4jConfig()
                       throws IOException
更新log4j.properties

返回:
null
抛出:
IOException - 对response中的writer操作抛出检查异常IOException

apply

public String apply()
             throws IOException,
                    IllegalAccessException,
                    InstantiationException,
                    InvocationTargetException,
                    NoSuchMethodException
使修改的系统日志级别生效

返回:
null
抛出:
IOException - io操作异常
IllegalAccessException - 非法访问
InstantiationException - 实例创建失败
InvocationTargetException - 反射异常
NoSuchMethodException - 发射


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.