The Log Swiftlet is the central logging facility of a router. Log messages are logged into configurable error-, warning-, and informational log files. The Log Swiftlet is not intended for debugging/tracing but for runtime log information like client connected/disconnected. Debug/tracing is covered by Trace Swiftlet.
Configuration
The configuration of the Log Swiftlet is defined within the element
<swiftlet name="sys$log" .../>
of the router's configuration file.
Attributes of Element "swiftlet"
Definition
|
Attribute |
Type |
Mandatory |
Description |
|---|---|---|---|
|
size-limit |
java.lang.Integer |
No |
Logfiles do rotate by reaching this size |
|
number-old-logfile-generations |
java.lang.Integer |
No |
Number old Logfile Generations to keep |
|
logfile-info-enabled |
java.lang.Boolean |
No |
Info Logfile enabled |
|
logfile-info |
java.lang.String |
No |
Logfile Information Messages |
|
logfile-warning-enabled |
java.lang.Boolean |
No |
Warning Logfile enabled |
|
logfile-warning |
java.lang.String |
No |
Logfile Warning Messages |
|
logfile-error-enabled |
java.lang.Boolean |
No |
Error Logfile enabled |
|
logfile-error |
java.lang.String |
No |
Logfile Error Messages |
|
logsink-directory |
java.lang.String |
No |
Directory where Logsinks will be stored |
Values
|
Attribute |
Values |
|---|---|
|
size-limit |
Min: 1
|
|
number-old-logfile-generations |
Default: 50 |
|
logfile-info-enabled |
Default: true |
|
logfile-info |
Default: swiftmq_info.log |
|
logfile-warning-enabled |
Default: true |
|
logfile-warning |
Default: swiftmq_warning.log |
|
logfile-error-enabled |
Default: true |
|
logfile-error |
Default: swiftmq_error.log |
|
logsink-directory |
Default: ./ |