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

winston log provider: add ability to modify config for showing/hiding timestamp #54

Open
shazron opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@shazron
Copy link
Member

shazron commented Apr 26, 2024

If you choose the winston log provider, it adds a timestamp by default. Add an option in the config to not show the timestamp, and also the ability to turn on/off timestamp after initialization.

Proposed

// init winston logger (timestamp is true by default for backwards compat)
const aioLogger = require('@adobe/aio-lib-core-logging')('App', {provider:'winston', timestamp: false })
// turn on the timestamp later 
aioLogger.config.timestamp = true // use a setter
@shazron shazron added the enhancement New feature or request label Apr 26, 2024
@shazron shazron changed the title winston log provider: add ability to not add a timestamp winston log provider: add ability to modify config for showing/hiding timestamp Apr 26, 2024
@aiojbot
Copy link
Collaborator

aiojbot commented Apr 26, 2024

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-2958

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