Allow two getLogger() entrypoints

This commit is contained in:
Gustavo Cordova Avila
2024-04-12 13:40:29 -07:00
parent dfbad6693a
commit a94ac79946
3 changed files with 15 additions and 3 deletions

View File

@@ -30,4 +30,11 @@ test "Emit different formats":
setLogOutputFormat(fmt)
log.always("format example", {"format": $fmt})
test "With and without extra":
var log1 = getLogger("with-extra", {"extra": "yes"})
var log2 = getLogger("without-extra")
log1.always("Just a message", {"more-extra": "please more"})
log2.always("Another message", {"extra-filling": "dessert"})
# Fin.