Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I add format by logger instance? #96

Open
wangcheng714 opened this issue Aug 29, 2019 · 1 comment
Open

Can I add format by logger instance? #96

wangcheng714 opened this issue Aug 29, 2019 · 1 comment

Comments

@wangcheng714
Copy link

wangcheng714 commented Aug 29, 2019

For example :

const logger = createLogger({
format: format.combin(
format.json(),
format.errors(),
)
});

// i can add format by addFormat API or some other API, someone can help me
logger.addFormat(format.timestamp())

@wangcheng714 wangcheng714 changed the title Can I Can I add format by logger instance? Aug 29, 2019
@zacard-orc
Copy link

I have the same problem after initilze the format combine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants