mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-24 19:06:44 +00:00
refactor: no more pmapifactory
This commit is contained in:
10
pkg/logs/logs.go
Normal file
10
pkg/logs/logs.go
Normal file
@ -0,0 +1,10 @@
|
||||
package logs
|
||||
|
||||
import "github.com/sirupsen/logrus"
|
||||
|
||||
// GetLogEntry returns logrus.Entry with PID and `packageName`.
|
||||
func GetLogEntry(packageName string) *logrus.Entry {
|
||||
return logrus.WithFields(logrus.Fields{
|
||||
"pkg": packageName,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user