kr.co.hit.live.admin.monitor
Class LogViewWebAction

java.lang.Object
  extended by kr.co.hit.live.web.action.AbstractWebAction
      extended by kr.co.hit.live.admin.monitor.LogViewWebAction
All Implemented Interfaces:
WebAction
Direct Known Subclasses:
ServiceCallViewWebAction, ServiceLogViewWebAction

public abstract class LogViewWebAction
extends AbstractWebAction

로그 파일일 접근하는 기능을 제공하는 WebAction 구현 클래스들을 위한 상위 클래스이다.

Author:
김형도

Field Summary
protected  String appenderName
          logback의 많은 설정 중에서 해당 로깅 내용을 출력하는 Appender 명칭을 지정한다.
protected static String CTX_PARAM
           
protected static String DATE_PARAM
           
protected  String loggerName
          logback의 설정 중에 해당 logger를 선택하거나 기본으로 ROOT_LOGGER_NAME을 지정한다.
protected static String NODE_PARAM
           
protected static String TRID_PARAM
           
 
Fields inherited from class kr.co.hit.live.web.action.AbstractWebAction
context, logger
 
Constructor Summary
LogViewWebAction()
           
 
Method Summary
protected  LogInputStreamReader getLogInputStreamReader(String contextValue, Date rollingDate)
          로그 파일로부터 로그 내용을 읽기 위한 리더 객체를 반환한다.
 void setAppender(String appender)
          로그 파일을 찾기 위하여 사용할 Appender 명을 설정한다.
 void setLogger(String logger)
          해당 로깅 내용을 출력하는 Logger 명을 지정한다.
 
Methods inherited from class kr.co.hit.live.web.action.AbstractWebAction
createForward, execute, getServletContext, getWebApplicationContext, setForward, setPrefix, setSuffix, setWebApplicationContext, showConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_PARAM

protected static final String NODE_PARAM
See Also:
Constant Field Values

TRID_PARAM

protected static final String TRID_PARAM
See Also:
Constant Field Values

CTX_PARAM

protected static final String CTX_PARAM
See Also:
Constant Field Values

DATE_PARAM

protected static final String DATE_PARAM
See Also:
Constant Field Values

loggerName

protected String loggerName
logback의 설정 중에 해당 logger를 선택하거나 기본으로 ROOT_LOGGER_NAME을 지정한다.


appenderName

protected String appenderName
logback의 많은 설정 중에서 해당 로깅 내용을 출력하는 Appender 명칭을 지정한다.

Constructor Detail

LogViewWebAction

public LogViewWebAction()
Method Detail

setLogger

public void setLogger(String logger)
해당 로깅 내용을 출력하는 Logger 명을 지정한다.

Parameters:
logger -

setAppender

public void setAppender(String appender)
로그 파일을 찾기 위하여 사용할 Appender 명을 설정한다.

Parameters:
appenderName -

getLogInputStreamReader

protected LogInputStreamReader getLogInputStreamReader(String contextValue,
                                                       Date rollingDate)
                                                throws IOException
로그 파일로부터 로그 내용을 읽기 위한 리더 객체를 반환한다.

Parameters:
contextValue -
Returns:
Throws:
IOException


Copyright © 2014. All Rights Reserved.