new config options and error handles new input any

This commit is contained in:
Adrian Zuercher
2025-04-21 12:59:16 +02:00
parent 6f963ae0a4
commit 29f3ee26f9
5 changed files with 77 additions and 18 deletions

13
main.go
View File

@@ -1,15 +1,20 @@
package main
import "github.com/tecamino/tecamino-logger/logging"
import (
"errors"
"github.com/tecamino/tecamino-logger/logging"
)
func main() {
debug := false
log, err := logging.NewLogger("Test", debug)
log, err := logging.NewLogger("Test.log", nil)
if err != nil {
panic(err)
}
log.Info("line 10", "hallo")
log.Warning("line 11", "vello")
log.Error("line 12", "hie")
log.Debug("line 13", "isch")
err = errors.New("test error")
log.Error("line 14", err)
log.Debug("line 15", "isch")
}