fix test app

This commit is contained in:
kingecg 2024-09-21 22:41:52 +08:00
parent 6d89afc6e3
commit 8515465587
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
log/

View File

@ -4,7 +4,7 @@ import (
logger "git.pyer.club/kingecg/gologger" logger "git.pyer.club/kingecg/gologger"
) )
func main() { func aqmain() {
logger.Configure(logger.LoggersConfig{ logger.Configure(logger.LoggersConfig{
Categories: map[string]logger.LogConfig{ Categories: map[string]logger.LogConfig{
"default": { "default": {
@ -40,5 +40,4 @@ func main() {
defaultLogger.Debug("debug again") defaultLogger.Debug("debug again")
fatLogger.Debug("debug again") fatLogger.Debug("debug again")
fatLogger.Error("This is error") fatLogger.Error("This is error")
select {}
} }