Artifact [92d517d0ef]
Artifact 92d517d0efcd784215a5b91fedf6c84b065ecbb15b222c31b0d346d859750b18:
- File logfmt1/docs/regex.md — part of check-in [9a5ae7b93b] at 2020-12-30 22:54:29 on branch trunk — logfmt1 manual changes (user: mario size: 608)
logopen() does this internally, but you might want to manually
craft the "regex": for a .fmt descriptor. In such cases,
you can use regex() or update() to combine the log.fmt with definitions
from the global fmt database.
regex()
Takes a .fmt json/dict, and generates the regex with named capture groups from it.
::: logfmt1.regex
rx2re()
::: logfmt1.rx2re
update()
Updates the regex: property in a .fmt dict. Also injects any used
fields: or alias: lists. (For now this is basically just a wrapper
of the regex() builder.)
::: logfmt1.update