You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect all 3 loggers to print. But I'm only getting the 2 children.
Code:
package main
import (
"github.com/Sirupsen/logrus"
"github.com/zenoss/logri"
)
func main() {
pkglog := logri.GetLogger("package")
cmplog := logri.GetLogger("package.component")
subcmplog := logri.GetLogger("package.component.subcomponent")
pkglog.SetLevel(logrus.DebugLevel, true)
pkglog.Debug"This is a debug message pkg")
cmplog.Debug("This is a debug message cmp")
subcmplog.Debug("This is a debug message subcmp")
}
Output:
PS C:\git\firefly-svc-nats-http-bridge\cmd\server> go run main.go
time="2024-06-29T16:32:27-05:00" level=debug msg="This is a debug message cmp" logger=package.component
time="2024-06-29T16:32:27-05:00" level=debug msg="This is a debug message subcmp" logger=package.component.subcomponent
PS C:\git\firefly-svc-nats-http-bridge\cmd\server>
The text was updated successfully, but these errors were encountered:
I expect all 3 loggers to print. But I'm only getting the 2 children.
Code:
Output:
The text was updated successfully, but these errors were encountered: