Configuration
Even moderately sized applications can contain thousands of logging statements. To decide which of these statements will be logged and where, users need to configure Log4j Core in one of following ways:
-
Through a configuration file
-
Through programmatic configuration
Some meta-configuration options (e.g., the configuration file location) are only available through system properties.