blob: e340dbfb508359bda740e872a01a752d44921c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package logformat
import "errors"
// ErrCustom1NotImplemented indicates custom1 parser is only a template.
var ErrCustom1NotImplemented error = errors.New("custom1 log format is not implemented")
// Template for creating a custom log format.
type custom1Parser struct{}
var _ Parser = (*custom1Parser)(nil)
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
}
|