Allow two getLogger() entrypoints
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user