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

Add option to format the time stamp #344

Closed
1 task
JessieVela opened this issue Jan 30, 2025 · 2 comments
Closed
1 task

Add option to format the time stamp #344

JessieVela opened this issue Jan 30, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@JessieVela
Copy link

JessieVela commented Jan 30, 2025

Describe the feature

I love the formatting of the fancy reporter. I'm not a fan of the timestamp on the right because every time I resize my console window, it messes up the logs by causing them to wrap. I found a way to make the time show on the left, which solves the wrapping issue for me.

const logger = createConsola({
  formatOptions: {
    columns: 1,
  },
});

When running on the server, the timestamp is not very helpful when I need to reference logs from several days back. It would be nice to be able to initialize consola with a desired format to mimic the native toLocaleString().

Additional information

  • Would you be willing to help implement this feature?
@JessieVela JessieVela added the enhancement New feature or request label Jan 30, 2025
@pi0
Copy link
Member

pi0 commented Jan 31, 2025

Planned for v4. See #335 (closing issue to track from there, thanks for suggestion ❤ )

@pi0 pi0 closed this as completed Jan 31, 2025
@JessieVela
Copy link
Author

Thank you! I didn't realize that Move tags to the left to avoid whitespace paddings included the timestamp. 😄

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

No branches or pull requests

2 participants