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

String as a second argument won't appear in logs #51

Open
Ko1103 opened this issue Dec 4, 2023 · 1 comment
Open

String as a second argument won't appear in logs #51

Ko1103 opened this issue Dec 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Ko1103
Copy link
Contributor

Ko1103 commented Dec 4, 2023

Bug Description

How to reproduce

const logger = new Logger();
const err = new Error('This is second argument');

logger.log('This is message.', err.message);  // show `This is message.` only.

Expected behavior

Shows both, like

logger.log('This is message.', err.message);  // show `This is message. This is second argument`.
@Ko1103 Ko1103 added the bug Something isn't working label Dec 4, 2023
@Ko1103 Ko1103 changed the title 第二引数にstringを入れるとログに出てこない pae String as a second argument won't appear in logs Dec 4, 2023
@Ko1103
Copy link
Contributor Author

Ko1103 commented Dec 4, 2023

Add delimiter for better readability. - as delimiter.

// show `This is message. - This is second argument`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant