There are six custom-level logging in Log4j that includes TRACE, DEBUG, INFO, WARN, ERROR, and FATAL. If a log level is set, messages will be logged for that level and level below it.