diff options
Diffstat (limited to 'internal/mapr/logformat/custom2.go')
| -rw-r--r-- | internal/mapr/logformat/custom2.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/mapr/logformat/custom2.go b/internal/mapr/logformat/custom2.go index 262c721..a1a732b 100644 --- a/internal/mapr/logformat/custom2.go +++ b/internal/mapr/logformat/custom2.go @@ -2,15 +2,18 @@ package logformat import "errors" +// ErrCustom2NotImplemented indicates custom2 parser is only a template. var ErrCustom2NotImplemented error = errors.New("custom2 log format is not implemented") // Template for creating a custom log format. type custom2Parser struct{} +var _ Parser = (*custom2Parser)(nil) + func newCustom2Parser(hostname, timeZoneName string, timeZoneOffset int) (*custom2Parser, error) { return &custom2Parser{}, ErrCustom2NotImplemented } -func (p *custom2Parser) MakeFields(maprLine string) (map[string]string, error) { +func (p *custom2Parser) MakeFields(maprLine, _ string) (map[string]string, error) { return nil, ErrCustom2NotImplemented } |
