Correlation of log levels between LAC and log4j

book

Article ID: 129083

calendar_today

Updated On:

Products

CA Live API Creator

Issue/Introduction



LAC External Logging is explained in the docops below:
https://docops.ca.com/ca-live-api-creator/5-1/en/developing-apis/debug/external-logging
 
It states that:
CA Live API Creator uses the Apache Log4j 2 framework for API-level logging.
And, the log level is explained as following:
The log level for the log message.
Values: SEVERE (highest value), WARNING, INFO, CONFIG, FINE, FINER, FINEST (lowest value)
 
On the other hadn, as for log4j, the log level supports different values such as:
ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL and OFF.
 
However, there is no information on Correlation of log levels between LAC and log4j. How are they related?

Environment

LAC 5.1

Resolution

Below is the mapping, on the left side is the LAC logging levels and on the right is log4j2 levels.

1. SEVERE = ERROR
2. WARNING  = WARN
3. INFO = INFO
4. FINE = DEBUG
5. FINER = FINER(Custom Level)
6. FINEST = TRACE