[service] Move logging to the core, remove pkg level logs

This commit is contained in:
Daniel
2024-11-14 17:33:27 +01:00
parent 8b1bdc7eb1
commit f91003d077
22 changed files with 360 additions and 306 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func init() {
err := Start()
err := Start("info", true, "")
if err != nil {
panic(fmt.Sprintf("start failed: %s", err))
}
@@ -56,9 +56,6 @@ func TestLogging(t *testing.T) {
// wait logs to be written
time.Sleep(1 * time.Millisecond)
// just for show
UnSetPkgLevels()
// do not really shut down, we may need logging for other tests
// ShutdownLogging()
}