Sovos Docs

Configure the log4j2.properties file

Learn what can be configured in the log4j2.properties file.

When integrating NetSuite with Tax Determination, proper logging configuration is essential to monitor, debug, and maintain the connector's performance and reliability. The log4j2.properties file allows you to control log levels, output formats, and destinations, enabling teams to capture meaningful diagnostic information without overwhelming the system with unnecessary data. Whether you're setting up the connector for the first time or fine-tuning an existing deployment, understanding how to tailor this file to your environment will help ensure smooth operation and faster issue resolution.
Note:

sovosJcoServer.log always contains the latest file. Files with higher numbers contain earlier content.

The following image shows the default contents of the log4j2.properties file:

The contents of the log4j2.properties files are shown.

The following table lists the properties that can be configured in the log4j2.properties file:

CAUTION:

Do not modify any other properties in the log4j2.properties file.

ParameterDescriptionProperty to EditDefault
<Loglevel>Determines how much data is logged. filter.threshold.levellogger.rolling.levelERROR
<Nameoflogfile>The name of the files in which log content is stored.property.filenamesovosJcoServer.log
<Max file size>Determines how large a file can become before a new file is created.appender.rolling.policies.size.size50MB
<Max number of files> Determines how many files will be stored. If the maximum number of file size is reached, the oldest files will be zipped with a timestamp to keep track of all the logs.appender.rolling.strategy.max10 (for a total of 10 files)
  1. Go to <top level>/Sovos-S4Hana- JcoServer/configuration to find the log4j2.properties file.
    The default name of the logging file for the connector is sovosJcoServer.log.
  2. Use sovosJcoServer.log for the latest file. Files with higher numbers contain earlier content.