0 votes
in Apache Log4j by
Explain what are the format characters used in log4j?

1 Answer

0 votes
by

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.
...