blob: b61aa54021f092a12f8f380c6790813852b978e1 [file] [log] [blame]
David K. Bainbridge528b3182017-01-23 08:51:59 -08001// Copyright 2016 Canonical Ltd.
2// Licensed under the LGPLv3, see LICENCE file for details.
3
4package loggo
5
6import "time"
7
8// Entry represents a single log message.
9type Entry struct {
10 // Level is the severity of the log message.
11 Level Level
12 // Module is the dotted module name from the logger.
13 Module string
14 // Filename is the full path the file that logged the message.
15 Filename string
16 // Line is the line number of the Filename.
17 Line int
18 // Timestamp is when the log message was created
19 Timestamp time.Time
20 // Message is the formatted string from teh log call.
21 Message string
22}