diff --git a/pkg/log/log.go b/pkg/log/log.go index 663ff979aec309346389f6150ed7c5bce8555d7d..20b2e8ee9410f477c3824813714ba19ea171ab79 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"` }