Show TOC

Overriding Logging SettingsLocate this document in the navigation structure

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. Overrride default settings by adding lines to <SMP_HOME> \props.ini.

Property
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. 50 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.
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. false

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.

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. true

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.

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. false

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

com.sap.mobile.platform.server.support. util.service.flushInterVal Amount of time, in seconds, that passes before third-party logger entries are flushed from the buffer and saved to the database. 3

In order 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.

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. 50

In order 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.