blob: 4fddfcd4e8807ee2505d16e20395d320c2df79fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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) {
return nil, ErrCustom2NotImplemented
}
|