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

[Feature Request]: Putting the timeutil attribute into the second parameter of the logger allows the user to configure the running numerical unit #1850

Open
Tracked by #1589
ErKeLost opened this issue Oct 22, 2024 · 0 comments
Labels
pr welcome Welcome contributions for newcomers v2.0 v2.0 version

Comments

@ErKeLost
Copy link
Member

ErKeLost commented Oct 22, 2024

Currently, there is a timeunit attribute in the config configuration that is used to resolve whether the user passes in ms or s as a unit to be printed on the terminal. Now I want to remove this attribute and put the timeunit attribute in the logger as the second parameter of the logger.

like e.g

const logger = new Logger({
    timeunit: 's', // or 'ms'
    name: 'Farm Base'
})
@ErKeLost ErKeLost changed the title Putting the timeutil attribute into the second parameter of the logger allows the user to configure the running numerical unit [Feature Request]: Putting the timeutil attribute into the second parameter of the logger allows the user to configure the running numerical unit Oct 22, 2024
@ErKeLost ErKeLost added v2.0 v2.0 version pr welcome Welcome contributions for newcomers labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr welcome Welcome contributions for newcomers v2.0 v2.0 version
Projects
None yet
Development

No branches or pull requests

1 participant