The :LOG commands are used to set/display the logging levels for you application. By default, the value of :LOG is as per the last build.
The security level to change log settings is Controller (:LOG+, :LOG-, :LOG A). The security level to display log settings (:LOG) is standard.
:LOG settings are stored in your database. When your application is initiated, stored settings are reapplied. However, changes to :LOG settings are not retained across application builds.
:LOG
Displays whether or not logging is set, and gives current log pivot number. The log pivot number is the 10-digit log entry reference number of the form:
nnn rrrrrr l
Where:
nnn is the current log file number (commencing from 001)
rrrrrr is the current log block number within the file (commencing from 000001)
l is the logical record number within the block (commencing from 1)
Security Level is Standard.
:LOG+
Sets Logging for your application. All transactions and system activity (such as beginning-of-task and end-of-task) are recorded in a log file (but not administration commands, ROC messages). If logging was disabled, a log file is opened, and logging commences from the next transaction or Report that updates the database. Applies until you change it.
By default, the setting is as in the Logging properties set for the Segment under the Runtime Behavior category in Builder (which defaults to No Logging).
Security level is Controller.
:LOG-
Disables logging. If logging was enabled, the log file is closed and released when output transactions completed. No new log file is opened until the setting is changed.
By default, the setting is as in the Logging properties set for the Segment under the Runtime Behavior category in Builder (which defaults to No Logging).
Security level is Controller.
:LOG A
Logs system activity only (such as beginning-of-task and end-of-task). Transactions are not logged. By default, the setting is No.
Security level is Controller.