Static
date2Helper method to format the local date as a string. Output in standard format: YYYY-MM-DD HH:mm:ss,SSS
.
where SSS
is the milliseconds part padded to 3
digits.
The date to format.
A string representation of the date in the format YYYY-MM-DD HH:mm:ss,SSS
.
Static
isStatic
validateValidates a log event factory is a function.
The factory function to validate.
Optional
funName: stringUsed to identify the function name in the error message.
Optional
context: stringIdentical method already defined in AbstractAppender
just keep it here in case in the future it can be used
by other classes that need to validate a log event factory. At this time is not used but the test cases where
defined for this class in test/main.ts
so we keep it for potential future use.
Utility class providing static helper methods for logging operations.