blob: e5a1b2b3d5319f60c41081756d21f059f1c134cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package eventlogging
import "fagott.pw/nsa"
type EventLoggerData struct {
User string `json:"user"`
UserAgent string `json:"userAgent"`
}
type EventLogger struct {
base *nsa.Logger
}
func NewEventLogger(ip string) *EventLogger {
return &EventLogger{
base: nsa.NewLogger(ip),
}
}
|