Cisco Cisco Unified Customer Voice Portal 10.0(1) Guía Del Usuario
C
HAPTER
5:
V
OICE
XML
S
ERVER
L
OGGING
V
OICE
XML
S
ERVER
U
SER
G
UIDE
FOR
C
ISCO
U
NIFIED
C
USTOMER
V
OICE
P
ORTAL
R
ELEASE
4.0(1)
79
folder after the application server has started could be deleted when the Error Logger
encounters a new error.
encounters a new error.
The optional
<purge>
tag defines the purging strategy. If this tag does not appear in the
configuration, no file purging will take place. The tag can contain one of the following child
tags:
tags:
file_age
. The Error Logger will delete error log files older than X days, where X is an integer
greater than 0 specified in the
older_than
attribute.
file_count
. The Error Logger will delete error log files if the logger folder contains greater
than X files, where X is an integer greater than 0 specified in the
greater_than
attribute.
When the files are deleted, the oldest ones are deleted first until the folder reaches the desired
file count.
file count.
Error Logger Configuration Example #1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration SYSTEM
"../../../../dtds/ApplicationErrorLoggerConfig.dtd">
<configuration version="1.0" name="MyErrorLogger1">
<!DOCTYPE configuration SYSTEM
"../../../../dtds/ApplicationErrorLoggerConfig.dtd">
<configuration version="1.0" name="MyErrorLogger1">
<format delimiter="," remove_delimiter_from_content="true"
date_format="standard" date_granularity="seconds" print_stack_traces="true"/>
<purge>
<file_count
<purge>
<file_count
greater_than="10"/>
</purge>
</configuration>
</configuration>
This configuration has the following features:
The error logs will be delimited with a comma and will have any commas that appear in the
content removed.
Dates in the error logs will appear in the standard format with seconds granularity. For
example: “05/09/2006 15:45:02”
Java stack traces will appear in the error logs. Note that since stack traces span multiple lines,
including stack traces may complicate the process of importing the error logs into
spreadsheets or databases. This is rarely done for error logs anyway.
spreadsheets or databases. This is rarely done for error logs anyway.
When a new file is added to logger instance’s dedicated directory by the Error Logger, if the
directory contains more than 10 files the oldest file will be deleted.
Error Logger Configuration Example #2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration SYSTEM
"../../../../dtds/ApplicationErrorLoggerConfig.dtd">
<configuration version="1.0" name="MyErrorLogger2">
<!DOCTYPE configuration SYSTEM
"../../../../dtds/ApplicationErrorLoggerConfig.dtd">
<configuration version="1.0" name="MyErrorLogger2">