From 46a33abf643e84fd74e81a2344a950d1c1946f7d Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Fri, 19 Jan 2024 15:48:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2?= =?UTF-8?q?=20Entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/log/log.go | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index 663ff979..20b2e8ee 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -36,20 +36,15 @@ type Caller struct { } type Entry struct { - ID string `json:"ID,omitempty" bson:"ID"` - Action string `json:"action,omitempty" bson:"action"` - Timestamp time.Time `json:"timestamp" bson:"timestamp"` - LogLevel Level `json:"logLevel,omitempty" bson:"logLevel"` - Message string `json:"message,omitempty" bson:"message"` - Category string `json:"category,omitempty" bson:"category"` - Component string `json:"component,omitempty" bson:"component"` - Organization string `json:"organization,omitempty" bson:"organization"` - Space string `json:"space,omitempty" bson:"space"` - Env string `json:"env,omitempty" bson:"env"` - Collection string `json:"collection,omitempty" bson:"collection"` - ObjectType string `json:"objectType,omitempty" bson:"objectType"` - ObjectId string `json:"objectId,omitempty" bson:"objectId"` - Caller *Caller `json:"caller" bson:"caller"` - Attr interface{} `json:"attr,omitempty" bson:"attr"` - Tags []string `json:"tags,omitempty" bson:"tags"` + ID string `json:"ID,omitempty" bson:"ID"` + Timestamp time.Time `json:"timestamp" bson:"timestamp"` + LogLevel Level `json:"logLevel,omitempty" bson:"logLevel"` + Message string `json:"message,omitempty" bson:"message"` + Category string `json:"category,omitempty" bson:"category"` + Component string `json:"component,omitempty" bson:"component"` + Event string `json:"event,omitempty" bson:"event"` + Object string `json:"object,omitempty" bson:"object"` + Caller string `json:"caller" bson:"caller"` + Attr interface{} `json:"attr,omitempty" bson:"attr"` + Tags []string `json:"tags,omitempty" bson:"tags"` } -- GitLab