Cisco Cisco Prime Network Registrar 8.1 설치 가이드

다운로드
페이지 13
Cisco Prime Network Registrar IPAM 8.1.3 Logging Overview 
The ${catalina.base} directory is the home directory for Tomcat within the Cisco Prime Network 
Registrar IPAM installation which is $INCHOME/tomcat. Other incontrol.log file parameters that 
can be set in this properties file include the maximum file size, which defaults to 25MB 
(
log4j.appender.A2.MaxFileSize=25MB
) and number of rollover versions 
(
log4j.appender.A2.MaxBackupIndex=4
). Otherwise, the severity of events logged can be 
defined by log category; for example: 
log4j.category.com.diamondip=DEBUG 
log4j.category.com.diamondip.common=INFO  
log4j.category.org.hibernate.SQL=ERROR 
log4j.category.org.hibernate.type=ERROR 
log4j.category.com.opensymphony.xwork.interceptor=ERROR 
log4j.category.com.opensymphony.xwork.ActionSupport=ERROR 
Cisco Prime Network Registrar IPAM Web Service Log – The web service logs events 
for Cisco Prime Network Registrar IPAM web services (inc-ws) access and business logic to 
$INCHOME/tomcat/logs/webservice.log
 by default. This logging output destination is 
defined in the log4j.properites file in the $INCHOME/tomcat/webapps/inc-ws/WEB-INF/classes 
directory per the following setting: 
log4j.appender.A2.File=${catalina.base}/logs/webservice.log 
The logging category event severity setting can be edited on the lines: 
log4j.category.com.diamondip=DEBUG 
log4j.category.org.hibernate.SQL=DEBUG 
Tomcat Localhost log - - The 
$INCHOME/tomcat/conf/server.xml
 
file contains the 
directory specification and file-naming format for the daily tomcat localhost log. The default path 
and file format is $INCHOME/tomcat/logs/localhost_log.<date>.txt where <date> is the current 
date in YYYY-MM-DD format. This is specified by the directory=”logs” parameter shown 
below, which enables entry of an absolute pathname or a subdirectory of ${catalina.base} (i.e., 
$INCHOME/tomcat). 
        <Logger className="org.apache.catalina.logger.FileLogger" 
            directory="logs"  prefix="localhost_log." suffix=".txt" 
            timestamp="true"/> 
The format of the log file is also specified in this entry by the prefix fixed text (localhost_log.), 
suffix (.txt) and use of timestamp in between. 
Tomcat Localhost administrator log - The 
$INCHOME/tomcat/conf/Catalina/localhost/admin.xml
 
file contains the directory 
specification and file-naming format for daily tomcat localhost administrator log, which logs 
Tomcat configuration changes. The default path and file format is 
$INCHOME/tomcat/logs/localhost_admin_log.<date>.txt
 
where <date> is the current 
date in YYYY-MM-DD format. This is specified by the directory=”logs” parameter shown