My proposal for a simultaneously human-readable and easy-to-parse log message format:
Syntax: "RMDNSBL: " IP " (" ID ") " STATUS [": " REASON]
ID is either the listing ID, "none" or "unknown"
STATUS is either: removed (success) not removed ("business logic" not-removed case) failed (technical failure, unsuccessful DNSBL RPC call)
a REASON is given if the operation is not successful
Examples:
RMDNSBL: 127.23.34.45 (1234567) removed
RMDNSBL: 234.56.78.9 (none) not removed: no listing found
RMDNSBL: 198.51.100.123 (7654321) failed: You are not authorized to remove this incident
My proposal for a simultaneously human-readable and easy-to-parse log message format:
Syntax: "RMDNSBL: " IP " (" ID ") " STATUS [": " REASON]
ID
is either the listing ID, "none" or "unknown"STATUS
is either:removed
(success)not removed
("business logic" not-removed case)failed
(technical failure, unsuccessful DNSBL RPC call)REASON
is given if the operation is not successfulExamples: