diff options
| author | Paul Buetow <paul@buetow.org> | 2023-09-05 14:39:21 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2023-09-07 15:32:23 +0300 |
| commit | d427574824a1a4b6a5a0e15a3696f3df1c698424 (patch) | |
| tree | 45d3bf098c2b69f4aa47fcdeac03ea67cee7c39a /internal/mapr/logformat/custom2.go | |
| parent | bf39452c1f9a06d9f4e6eb3a06a23068a2451ca5 (diff) | |
Add `custom1` and `custom2` log formats.
Diffstat (limited to 'internal/mapr/logformat/custom2.go')
| -rw-r--r-- | internal/mapr/logformat/custom2.go | 16 |
1 files changed, 16 insertions, 0 deletions
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 +} |
