Skip to content

Getting current date-time format (or default format) #3788

Answered by ppkarwasz
ashr123 asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, thank you for answering 🙂 Second, regarding your first comment (i didn't want to quote it) is't not up for the user to decide how the time will be formatted, I'm the one who controls it via the attached log4j2.json. I wanted to let Log4J to take the lead regarding the formatting as I agree the default formatting won't probably change. When I used FixedDateFormat.FixedFormat.DEFAULT.getPattern() I meant to say

I didn't came up with the pattern, I took it from that place and if one day they will change it to something else, I'm ok with that and when I'll upgrade to a new version, it will be changed too

We certainly appreciate that you’ve chosen to align your application’s …

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ppkarwasz
Comment options

@ashr123
Comment options

@ashr123
Comment options

@ppkarwasz
Comment options

Answer selected by ashr123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants