Administrator

Logging Properties

You can override settings that control whether log entries are stored in the database or the server log, and when log entries are saved to the database. Override default settings by updating the <SMP_HOME> \props.ini file.

Property Description Default
com.sap.mobile.platform.server.support. logging.bufferSize Number of log entries that are stored in the buffer before the log entries are saved to the database.

Decrease this number if log entries are not showing up in the database when expected. Reducing the size of the buffer will increase the frequency of the database save operations.

50
com.sap.mobile.platform.server.support. logging.disable_db_appender Disables saving log entries to the database. Logs entries are saved to the server log file instead.

You may want to set this property to true when debugging in a test environment.

View the server log file in <SMP_HOME>\Server\log. Scroll to the bottom to see the latest entries.

false
com.sap.mobile.platform.server.support. util.service.disable_db_appender Disables saving log entries from third-party loggers to the database. Log entries are saved to the server log file instead.

Change this property to false to include these log entries in the correlated logging information in the Logs & Traces view of Management Cockpit .

If you change this setting to false, change the service.disable_file_appender property to true. The property is described below.

true
com.sap.mobile.platform.server.support. util.service.disable_file_appender Disables saving log entries from third-party loggers to the server log file. Log entries are saved to the database instead.

If you change this setting to true, set the service.disable_db_appender property to false.

false
com.sap.mobile.platform.server.support. util.service.flushInterVal Number of seconds before third-party logger entries are flushed from the buffer and saved to the database.

For this property to be applied, the service.disable_db_appender property must be set to false.

Third-party log entries are saved to the database based on this property or service.batch_size.

3
com.sap.mobile.platform.server.support. util.service.batch_size Number of third-party logger entries that are stored in the buffer before it is flushed and the log entries are saved to the database.

For this property to be applied, the service.disable_db_appender property must be set to false.

Third-party log entries are saved to the database based on this property or service.flushInterVal.

50