diff --git a/logs/log.go b/logs/log.go index f7218f53e1a634e396c849ee20255e51e2caccc5..5689b316a62798f44701ac420501a45fab13b0cb 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"`