Skip to content

Allow custom timestamp configuration#69

Merged
thetutlage merged 1 commit intoadonisjs:6.xfrom
ignatevdev:6.x
Feb 19, 2025
Merged

Allow custom timestamp configuration#69
thetutlage merged 1 commit intoadonisjs:6.xfrom
ignatevdev:6.x

Conversation

@ignatevdev
Copy link
Copy Markdown

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Currently only default presets for pino's timestamp option are allowed, however, this denies the ability to make a custom timestamp format or change the key of the timestamp field in log's json. This seems either like a bug or a missed feature.

I think a discussion for this is redundant as this is a very light change.

@thetutlage
Copy link
Copy Markdown
Member

Can you please add a test on how this option will be used and what will be output will look like?

@ignatevdev
Copy link
Copy Markdown
Author

Added tests along with a type fix

@santimedia01
Copy link
Copy Markdown

Hope you can merge it!

@thetutlage thetutlage merged commit 7a13e7d into adonisjs:6.x Feb 19, 2025
@thetutlage
Copy link
Copy Markdown
Member

Thanks @ignatevdev 👍

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

Successfully merging this pull request may close these issues.

3 participants