Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 117377
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: MHC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Document missing Log::Log4perl::DateFormat format specifiers in Log::Log4perl::Layout::PatternLayout
The following format specifiers are currently supported by Log::Log4perl::DateFormat but are not documented in Log::Log4perl::Layout::PatternLayout: Symbol Meaning Presentation Example ------ ------- ------------ ------- S millisecond (Number) 978 Z RFC 822 time zone (Text) -0800 ' escape for text (Delimiter) '' single quote (Literal) ' I would have added them myself in a patch, but maybe it makes more sense to keep everything in L::L4p::DateFormat and simply link to it, so the same information doesn't have to be maintained in two places. Also, the links to the Java SimpleDateFormat docs in both L::L4p::DateFormat and L::L4p::Layout::PatternLayout are broken. A quick search gives http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
Thanks for pointing this out, I've consolidated the docs in DateFormat and referred to it from PatternLayout: https://github.com/mschilli/log4perl/commit/fd7eac267bdc0a35a88663231b72d965042191d6 On Wed Aug 31 12:36:10 2016, MHC wrote: Show quoted text
> The following format specifiers are currently supported by > Log::Log4perl::DateFormat but are not documented in > Log::Log4perl::Layout::PatternLayout: > > Symbol Meaning Presentation Example > ------ ------- ------------ ------- > S millisecond (Number) 978 > Z RFC 822 time zone (Text) -0800 > ' escape for text (Delimiter) > '' single quote (Literal) ' > > I would have added them myself in a patch, but maybe it makes more > sense to keep everything in L::L4p::DateFormat and simply link to it, > so the same information doesn't have to be maintained in two places. > > Also, the links to the Java SimpleDateFormat docs in both > L::L4p::DateFormat and L::L4p::Layout::PatternLayout are broken. A > quick search gives > http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html