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: More customizeable timestamp #69

Closed
caturbgs opened this issue Oct 15, 2024 · 3 comments · Fixed by #70
Closed

Feature: More customizeable timestamp #69

caturbgs opened this issue Oct 15, 2024 · 3 comments · Fixed by #70
Assignees
Labels
enhancement 💫 New feature or request

Comments

@caturbgs
Copy link

Priority

Medium 🚧

Title

Add options to format the timestamp output

Description

Currently, the output timestamp is constrained to only `YYYY-MM-DD HH:mm:ss` format, it will be good to be customized the timestamp order formatting.

Additional Information

My example is like pino-pretty config options `translateTime` https://github.com/pinojs/pino-pretty?tab=readme-ov-file#cli-arguments

Alternatives Considered

No response

Additional Context

No response

@caturbgs caturbgs added the enhancement 💫 New feature or request label Oct 15, 2024
@PunGrumpy PunGrumpy self-assigned this Oct 25, 2024
PunGrumpy added a commit that referenced this issue Oct 28, 2024
- Add TimeStampConfig interface for flexible timestamp configuration
- Implement formatTimestamp utility with support for system time and custom formats
- Add support for various date/time token (yyyy, mm, dd, HH, MM, ss, SSS, Z)

BREAKING CHANGE: The timestamp format in logs will now respect the new timestamp configuration options when provided

feat #69
@PunGrumpy
Copy link
Owner

PunGrumpy commented Oct 28, 2024

Hi @caturbgs👋! I added new feature to v4.0.0

PS. Sorry for delay, I was busy with other projects 😓

@caturbgs
Copy link
Author

Hi @caturbgs👋! I added new feature to v4.0.0

PS. Sorry for delay, I was busy with other projects 😓

All good mate! The update is so great! Thanks for hearing the feedback.

@PunGrumpy
Copy link
Owner

You're welcome 💘

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

Successfully merging a pull request may close this issue.

2 participants