If you need to add your own logging level in Log4j, then you can do it as follows. You will have to create your own class which will extend from Level, Custom Log Levels with Apache Log4j …
Read Article about In Java How to Create your own Logging Level using Log4j (Configuring Log4j 2) →