@@ -26,18 +26,17 @@ type Fields map[string]interface{}
2626// Entry represents a log entry and contains the timestamp when the entry
2727// was created, level, etc.
2828type Entry struct {
29+ Level level `json:"-"`
30+ Line int `json:"line,omitempty"`
2931 AppName string `json:"app_name,omitempty"`
3032 InstanceName string `json:"instance_name,omitempty"`
3133 RequestID string `json:"request_id,omitempty"`
3234 Principal string `json:"principal,omitempty"`
33- Level level `json:"-"`
34- Time time.Time `json:"-"`
3535 Message string `json:"message,omitempty"`
3636 File string `json:"file,omitempty"`
37- Line int `json:"line,omitempty"`
3837 Fields Fields `json:"fields,omitempty"`
39-
40- logger * Logger
38+ Time time. Time `json:"-"`
39+ logger * Logger
4140}
4241
4342//‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
@@ -47,7 +46,7 @@ type Entry struct {
4746// MarshalJSON method for formating entry to JSON.
4847func (e * Entry ) MarshalJSON () ([]byte , error ) {
4948 type alias Entry
50- ne := & struct {
49+ ne := struct {
5150 Level string `json:"level,omitempty"`
5251 Time string `json:"timestamp,omitempty"`
5352 * alias
0 commit comments