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/custom2.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/mapr/logformat/custom2.go (limited to 'internal/mapr/logformat/custom2.go') diff --git a/internal/mapr/logformat/custom2.go b/internal/mapr/logformat/custom2.go new file mode 100644 index 0000000..262c721 --- /dev/null +++ b/internal/mapr/logformat/custom2.go @@ -0,0 +1,16 @@ +package logformat + +import "errors" + +var ErrCustom2NotImplemented error = errors.New("custom2 log format is not implemented") + +// Template for creating a custom log format. +type custom2Parser struct{} + +func newCustom2Parser(hostname, timeZoneName string, timeZoneOffset int) (*custom2Parser, error) { + return &custom2Parser{}, ErrCustom2NotImplemented +} + +func (p *custom2Parser) MakeFields(maprLine string) (map[string]string, error) { + return nil, ErrCustom2NotImplemented +} -- cgit v1.2.3