-
Notifications
You must be signed in to change notification settings - Fork 776
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
Pattern format and date docs #1012
Comments
Perhaps this isn't clear, but there is a mapping from reserved log4js Strings in pattern options to date-format library options.
The reserved Strings must match wholesomely. Lines 142 to 159 in 9fdbed5
Perhaps the documentations need to be clearer. |
My intention was to check that if maybe |
That's a good suggestion to have both aliases. |
According to https://github.com/log4js-node/log4js-node/blob/master/docs/layouts.md#pattern-format the pattern options are:
These names do not correspond to what is seen in the link specified, see https://www.npmjs.com/package/date-format#formatting-dates-as-strings
I assume this could be because log4js uses an older version? In any sense, it is confusing for users as one cannot check the npm site for the options, as they aren't completely identical.
The text was updated successfully, but these errors were encountered: