Configure the appender
- In the Expert Editor, go to the directory of the container that emits your event, listed in How Logging Works.
-
Open
logback-audit.xml, or create it if it does not exist yet. -
Add the appender and the logger:
xcc/backend/logback-audit.xml
-
Set
fileandfileNamePatternto the file name you want.${log_dir}resolves to that component’s own log directory on the host, under/var/log/xorlab/— see Operation Reference. -
Set the rolling policy.
maxFileSizecaps one file,maxHistorythe number of rolled files kept, andtotalSizeCapthe compressed total. Set a bound you can afford. A file appender on a per-email event fills a disk quickly, and nothing else on the host trims it for you. -
Set
logger nameto the event you chose. -
Set
patternto the format you chose. The alternatives are in Format Converters. - Click Publish. The logging configuration becomes active within about one minute.
- Trigger the event and confirm the file appears: Verify and Troubleshoot Logging.