summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/logformats.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/logformats.md b/doc/logformats.md
index 9d4e55d..839b050 100644
--- a/doc/logformats.md
+++ b/doc/logformats.md
@@ -148,4 +148,6 @@ func (p *fooParser) MakeFields(maprLine string) (map[string]string, error) {
}
```
+Next, `NewParser(...)` in `internal/mapr/logformat/parser.go` needs to be extended, so that the new log format is part of the switch statement. If you don't want to edit `parser.go` then you could instead use `custom1` or `custom2` log formats, there are ready templates available in the `logformat` package.
+
Once done, recompile DTail. DTail now understands `... logformat foo` (see "Seleting a log format" above).