David K. Bainbridge | 528b318 | 2017-01-23 08:51:59 -0800 | [diff] [blame^] | 1 | // Copyright 2016 Canonical Ltd. |
| 2 | // Licensed under the LGPLv3, see LICENCE file for details. |
| 3 | |
| 4 | package loggo |
| 5 | |
| 6 | import "time" |
| 7 | |
| 8 | // Entry represents a single log message. |
| 9 | type 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 | } |