From d427574824a1a4b6a5a0e15a3696f3df1c698424 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 5 Sep 2023 14:39:21 +0300 Subject: Add `custom1` and `custom2` log formats. --- internal/mapr/logformat/custom1.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/mapr/logformat/custom1.go (limited to 'internal/mapr/logformat/custom1.go') diff --git a/internal/mapr/logformat/custom1.go b/internal/mapr/logformat/custom1.go new file mode 100644 index 0000000..7229f3e --- /dev/null +++ b/internal/mapr/logformat/custom1.go @@ -0,0 +1,16 @@ +package logformat + +import "errors" + +var ErrCustom1NotImplemented error = errors.New("custom1 log format is not implemented") + +// Template for creating a custom log format. +type custom1Parser struct{} + +func newCustom1Parser(hostname, timeZoneName string, timeZoneOffset int) (*custom1Parser, error) { + return &custom1Parser{}, ErrCustom1NotImplemented +} + +func (p *custom1Parser) MakeFields(maprLine string) (map[string]string, error) { + return nil, ErrCustom1NotImplemented +} -- cgit v1.2.3