diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
| commit | 4b0ea68d7af9a6031a7ffda7ad66e0cb83315750 (patch) | |
| tree | 8220c1bf6f107ea76dd78c7f57b77000c0c98a22 /internal/logging/message.go | |
| download | opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.tar.gz opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.zip | |
initial
Diffstat (limited to 'internal/logging/message.go')
| -rw-r--r-- | internal/logging/message.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/logging/message.go b/internal/logging/message.go new file mode 100644 index 000000000..a71788911 --- /dev/null +++ b/internal/logging/message.go @@ -0,0 +1,19 @@ +package logging + +import ( + "time" +) + +// Message is the event payload for a log message +type Message struct { + ID string + Time time.Time + Level string + Message string `json:"msg"` + Attributes []Attr +} + +type Attr struct { + Key string + Value string +} |
