summaryrefslogtreecommitdiff
path: root/internal/mapr/logformat/custom1.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2023-09-08 07:45:51 +0300
committerPaul Buetow <pbuetow@mimecast.com>2023-09-08 07:45:51 +0300
commit85780654df870dc4170b93a8ed5a5dbfa917fe5d (patch)
tree1d2843e212def6bcdead71ef8c814e8cf55f31a5 /internal/mapr/logformat/custom1.go
parent51747cc62ae47af7d369e3e43d41f156835e9dfa (diff)
parentd6efc889f1dc9582ba8006633376c022c945a126 (diff)
Merge branch 'develop'
Diffstat (limited to 'internal/mapr/logformat/custom1.go')
-rw-r--r--internal/mapr/logformat/custom1.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/mapr/logformat/custom1.go b/internal/mapr/logformat/custom1.go
new file mode 100644
index 0000000..7229f3e
--- /dev/null
+++ b/internal/mapr/logformat/custom1.go
@@ -0,0 +1,16 @@
+package logformat
+
+import "errors"
+
+var ErrCustom1NotImplemented error = errors.New("custom1 log format is not implemented")
+
+// Template for creating a custom log format.
+type custom1Parser struct{}
+
+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
+}