Login
Remember
Register
Ask a Question
Explain what are the format characters used in log4j?
0
votes
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
Explain what are the format characters used in log4j?
log4j-format-characters
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Apr 25, 2022
by
rajeshsharma
The format
characters used in log4j
are
L- it is used to output the line number from where the logging request was processed or issued
m- It is used to output the application supplied message related with the logging event
p-It is used to output the priority of the logging event
C- It is used to output the class name of the caller issuing the logging request
When any number is used along with the character it means the priority of the logging event should be justified to a width of 4 characters.
...