Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Explain what are the format characters used in log4j?
Home
Apache Log4j
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.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Explain what are the system properties checked by log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-properties
0
votes
Q: Explain what are Appenders in Log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-appenders
0
votes
Q: Explain what does WARN and TRACE level indicates in log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
warn
trace
0
votes
Q: Explain what is package level logging in log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-package
0
votes
Q: Explain whether log4j is a thread safe?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-thread
0
votes
Q: Explain what is layouts in log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-layouts
0
votes
Q: Explain why to use Apache Log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
apache-log4j
0
votes
Q: Explain what is Log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j
0
votes
Q: Mention what are the other support objects in Log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-object
0
votes
Q: Mention what are the three principal components of Log4j?
asked
Apr 25, 2022
in
Apache Log4j
by
rajeshsharma
log4j-components
...