Configuring Database Activity Logging
You turn on various types of database information logging through the dblog.cfg file.
The file is delivered with a pound sign (#) character to comment lines out, or turn off some features. To enable this feature, be sure to remove the # character.
- Open the 
$LACFGDIR/dblog.cfgfile in a text editor. - Configure DEBUG logging by entering values for the following parameters:
           
Parameter Description DEBUGTrueorFalseIf
DEBUGis true,ladslogging gathers database debug information. The default logging level isTRACE.DEBUGLEVELcan be set to override the default level.DEBUGLEVELlevelWhen
DEBUGis enabled, this entry sets the logging level.DEBUGLEVELdefaults toTRACE. For more information, see Log Level Values - Configure database driver error logging by entering a value for the following parameter:
           
Parameter Description LADBLOGLEVELlevelWhere level is the minimum logging level, e.g (none, fatal, warning, info, trace, sql, timestats, all, etc) for messages. These can also be the integer level equivalents.
LADBLOGLEVEL defaults to DBLog.ERROR as before. Controls logging level for messages to ladb.log
 - Configure TIMESTATS performance logging by entering values for the following parameters:
           
Parameter Description TIMESTATSTrueorFalseIf TIMESTATS is true,
ladslogging gathers timed statistics information to analyze performance.TIERDBI,OPF, orALLA comma-separated list of Tiers (data processing levels) logging is turned on for.
DATAAREASA comma-separated list of data areas logging is turned on for.
For example, the line
DATAAREAS=procurement,genfilters out everything except database activity in theprocurementandgendata areas.USERSA comma-separated list of actors that logging is turned on for. PROGRAMSA comma-separated list of programs that logging is turned on for.  - Specify the output directory for the log by entering a value for the DIR parameter:
           
Parameter Description DIRA complete directory path that indicates where log files will be kept.
If this entry is commented out or left blank, log files will be written to
$LALOGDIR. All files will be prefixed withDBLog.debugorDBLog.timestats. - Save and close the file.
 - Once you change this file, you need to restart any Infor Landmark Technology products and your application server to implement the change.