logging
system/logging
Type: Directory
Rules that decide which log messages are kept and where they go. Each rule selects messages by their topics, and optionally by a regular expression, and passes them to an action from /system/logging/action. The default rules pass info, error and warning messages to the memory action and critical messages to echo; other messages, for example debug, are not logged until a rule asks for them. See Log.
| Flag | Name | Description |
|---|---|---|
| X | disabled | The rule is disabled. |
| I | invalid | The rule is invalid. |
| * | default | One of the four default rules: info, error and warning to memory, critical to echo. |
| Y | managed |
| Argument | Type | Description |
|---|---|---|
| topics | multi { array-id, array-id, topic: super { ! , topic: enum } } | Topics a message must carry to match. A message matches only when it has every topic listed:
|
| prefix | string | Text added in front of every message the rule passes, as <prefix>: <message>. The prefix is part of the stored and of the sent message. |
| regex | string | Regular expression matched against the message text, followed by the message's extra fields. When it does not match, the rule does not pass the message, even when the topics match. |
| action | enum | Action from /system/logging/action that receives the matching messages. Every rule that matches passes the message to its own action; when two rules pass the same message to one action, the action receives it once. Default: memory. |