-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hey, thanks for this little gem of a library π π
I was trying to figure out how to replace the default zoya scope in the log messages, and here's what I came up with:
const logger = zoya({
fields: [scope({ scopes: ['main'] }), separator(), badge(), label(), separator(), message(), context()],
})
Is this the right way to do it? I figured this out by reading the tests (which were very easy to read π ) but I'm not sure if I've missed something:
- why is
scopesan array? What happens if I define multiple scopes? - can I specify the scope when logging a message? If so, how?
I guess some more examples might be useful. The santa one is cute but not very illustrative :)
If you prefer to just explain to me here in the issue how to use it, I can send a PR with an update to the docs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request