Difference between the Date lookup $${date:yyyy-MM} and the Format Specifier %d{yyyy-MM}?
Rick <[email protected]> Fri, 2 Sep 2022 00:21:04 -0400
| Newsgroups | gmane.comp.jakarta.log4j.user |
|---|---|
| Message-ID | <CANbrXEXXQJ_DWUMA0EbpJdTHc_oxxc9GsUNp1HiXAxirXTurXA@mail.gmail.com> |
Hi,
I am new to Log4j2, and I am a little bit confused with the Date lookup
$${date:yyyy-MM} and the Format Specifier %d{yyyy-MM}.
Please see the following configuration:
<RollingRandomAccessFile name="log2file" fileName="logs/app.log"
filePattern="logs/*$${date:yyyy-MM}*/app-*%d{MM-dd-yyyy}*-%i.log.gz">
--
Sincerely,
*Rick Qin*
Email: [email protected]