| 1 |
// Package logging implements attribute-based logging. Log entries |
| 2 |
// consist of timestamps, an actor and event string, and a mapping of |
| 3 |
// string key-value attribute pairs. For example, |
| 4 |
// |
| 5 |
// log.Error("serialiser", "failed to open file", |
| 6 |
// map[string]string{ |
| 7 |
// "error": err.Error(), |
| 8 |
// "path": "data.bin", |
| 9 |
// }) |
| 10 |
// |
| 11 |
// This produces the output message |
| 12 |
// |
| 13 |
// [2016-04-01T15:04:30-0700] [ERROR] [actor:serialiser event:failed to open file] error=is a directory path=data.bin |
| 14 |
// |
| 15 |
package logging |