Page History
...
Log4j2 Configuration Files
Default Locations
The Log4j2 configuration file is file log4j2.xml
and has is available from the following default locations for each JS7 component:
Windows | Unix | |
---|---|---|
Controller | C:\Program Files\sos-berlin.com\js7\controller\lib\log42j.xml | /opt/sos-berlin.com/js7/controller/lib/log4j2,xml |
Agent | C:\Program Files\sos-berlin.com\js7\agent\lib\log42j.xml | /opt/sos-berlin.com/js7/agent/lib/log4j2,xml |
JOC Cockpit | C:\ProgramFiles\sos-berlin.com\js7\joc\jetty\lib\log42j.xml | /opt/sos-berlin.com/js7/joc/jetty/lib/log4j2,xml |
Note:
- Changes to the log4j2.xml file from the above locations will be lost if newer versions of JS7 components are installed.
Optional Locations
The Log4j2 configuration file log4j2.xml
with preference is used from the following locations if the file is present:
Windows | Unix | |
---|---|---|
Controller | C:\ProgramData\sos-berlin.com\js7\controller\var\config\log42j.xml | /var/sos-berlin.com/js7/controller/var/config/log4j2,xml |
Agent | C:\ProgramData\sos-berlin.com\js7\agent\var_<port>\config\log42j.xml | /var/sos-berlin.com/js7/agent/var_<port>/config/log4j2,xml |
JOC Cockpit | C:\ProgramData\sos-berlin.com\js7\joc\jetty_base\resources\joc\log42j.xml | /var/sos-berlin.com/js7/joc/jetty_base/resources/joc/log4j2,xml |
Note:
- Preferably the above locations are used if changes to the log4j2.xml file are required. Installation of newer releases of JS7 components will not overwrite this from if present with the above locations.
- Changes to the Log4j2 configuration are applied within 60s and do not require the JS7 component to be restarted.
Log Rotation Strategy
By default log files are rotated on the following events:
...
Overview
Content Tools