mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
11 lines
237 B
Go
11 lines
237 B
Go
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,
|
|
})
|
|
}
|