Mercurial > prosody-modules
view misc/lnav/prosody.json @ 5087:438fbebf74ac
mod_rest: Wrap webhook setup in a function for future reuse
The goal is to allow binding a session to a webhook via API to allow
e.g. bots to set up handling of incoming messages.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 27 Nov 2022 00:34:00 +0100 |
parents | f64d13d9b76b |
children | 3e6d1e248dc1 |
line wrap: on
line source
{ "$schema" : "https://lnav.org/schemas/format-v1.schema.json", "prosody_log" : { "body-field" : "message", "description" : "The Prosody IM server log format", "level" : { "debug" : "^debug$", "error" : "^error$", "info" : "^info$", "warning" : "^warn$" }, "level-field" : "loglevel", "multiline" : false, "ordered-by-time" : true, "regex" : { "standard" : { "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2})\\s+(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$" } }, "sample" : [ { "line" : "Jan 31 11:07:34 c2s565063fff480\tinfo\tClient connected" } ], "timestamp-field" : "timestamp", "timestamp-format" : "%b %d %H:%M:%S ", "title" : "Prosody log", "url" : "https://prosody.im/doc/logging", "value" : { "loggername" : { "identifier" : true, "kind" : "string" }, "payload" : { "kind" : "xml" } } } }