diff --git a/logs/log.go b/logs/log.go index 4277ce8a211e02a56229ca93b5489e69c1ec5c83..2de45a30cd98bbd5ce840726b862dbca52fc8480 100644 --- a/logs/log.go +++ b/logs/log.go @@ -27,7 +27,7 @@ func (l Level) String() string { } type Entry struct { - ID string `json:"id" bson:"id" mapstructure:"id"` + ID string `json:"id" bson:"_id" mapstructure:"id"` Timestamp time.Time `json:"timestamp,omitempty" bson:"timestamp,omitempty" mapstructure:"timestamp,omitempty"` Level Level `json:"level,omitempty" bson:"level,omitempty" mapstructure:"level,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty" mapstructure:"message,omitempty"`