gyozatech / noodlog

🍜 Parametrized JSON logging library in Golang which lets you obfuscate sensitive data and marshal any kind of content.
Apache License 2.0
44 stars 9 forks source link

Enable Datetime format customization #18

Open alessandroargentieri opened 3 years ago

alessandroargentieri commented 3 years ago

User Story

As an operator, I would like to get a DateTime formatted according to my needs.

Detailed Description

Maintain the present formatting as default and allow user customization in order to vary the format, consider the timezone too.

abhissng commented 1 year ago

Hey @alessandroargentieri . I would like to work on this feature

alessandroargentieri commented 1 year ago

Hi @abhissng sure.. please provide some tests to let the code coverage remain very high and some example of results (either with screenshots).. thanks for contributing!

abhissng commented 1 year ago

Hi @alessandroargentieri i am creating a Pull request for you to review the changes. However i am unable to write the tests for the getTime() as with every new time.Now(), the expected and test result mismatched.

I am attaching Screenshot for your reference. I have used the timeZone as "Asia/Kolkata" for now

Screenshot 2022-10-27 at 21 34 49