Custom Logs The Recital/4GL USERLOG() function can be used to log information to a user-specific log file for debugging or audit trail purposes. For full information on this function, please see the USERLOG() documentation. Enabling Log Files
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
set syslogging on |
The Recital Server Manager System Logging tab allows for the viewing and resetting of the System log.
|
Section |
Item |
Description |
|
System Logging |
DateTime |
Date and time stamp of the action. |
|
Name |
Login name used by connection |
|
|
Action |
Action logged: Login, Logoff, Errot |
|
|
Details |
Details of action |
|
|
Buttons |
Purge |
Allows the log file to be reset |
|
Refresh |
Refreshes the display |
To set up Client/Server logging, use the Recital Server Manager Settings tab to update the server's Registry entries:
The following Log file settings can be configured:
|
Item |
Description |
|---|---|
|
Log files Directory Path |
Enter the directory in which log files will be created. The default is the UAS\log directory. |
|
Enabled |
Check to enable log file creation. |
|
Versions |
Check to enable log file versioning. |
|
Listener |
Click to view the current port listener log file |
|
Server |
Click to view the current netserver log file |
|
Purge |
Click to purge all log files |
To enable the system log file for the Recital Universal Application Server for Linux, include the following command in the UAS/config.db file:
set syslogging on |
To set up Client/Server logging, the Recital Universal Application Server can be started with the 'logging' parameter, in which case, all relevant logging will take place.
# uas startup logging
Alternatively, one or more of the following environment variables can be added to the profile.uas file or set at the Operating System prompt. The Recital Universal Application Server must be restarted before environment variable changes will be recognized. Each environment variable should be set to the name of a log file.
|
Environment Variable |
Logs Activity of… |
|---|---|
|
UASLOG_PORT |
Port Server (db_rsiserver) |
|
UASLOG_NET |
(Net) Server (db_netserver) |
|
UASLOG_ORA |
Oracle Server (db_oraserver) |
|
UASLOG_INF |
Informix Server (db_infserver) |
|
UASLOG_ING |
Ingres Server (db_ingserver) |
|
UASLOG_JDB |
JDBC Server (db_jdbserver) |
|
UASLOG_REC |
Recital Server (db_recserver) |
Extract from profile.uas:
UASLOG_PORT="port.log" ; export UASLOG_PORT UASLOG_NET="net.log" ; export UASLOG_NET UASLOG_ORA="ora.log" ; export UASLOG_ORA UASLOG_INF="inf.log" ; export UASLOG_INF UASLOG_ING="ing.log" ; export UASLOG_ING UASLOG_JDB="jdb.log" ; export UASLOG_JDB UASLOG_REC="rec.log" ; export UASLOG_REC |
DB_LOGDIR
If the environment variable DB_LOGDIR is set to an existing directory, all log files will be written to this directory. If not, the log files will be created in the UAS directory.
DB_LOGDIR is set in the UAS/profile.uas file. By default it is set to the UAS/log directory:
DB_LOGDIR=${DB_ROOT}log/ ; export DB_LOGDIR
|
DB_LOGVER
If the environment variable DB_LOGVER is enabled, version numbers are added to the file names. For example, the activity of the first Net Server process will be logged to net.log, the second to net001.log, the third to net002.log etc.
DB_LOGVER is set in the UAS/profile.uas file:
DB_LOGVER="yes" ; export DB_LOGVER |
To enable the system log file for the Recital Universal Application Server for UNIX, include the following command in the UAS/config.db file:
set syslogging on |
To set up Client/Server logging, the Recital Universal Application Server can be started with the 'logging' parameter, in which case, all relevant logging will take place.
# uas startup logging
Alternatively, one or more of the following environment variables can be added to the profile.uas file or set at the Operating System prompt. The Recital Universal Application Server must be restarted before environment variable changes will be recognized. Each environment variable should be set to the name of a log file.
|
Environment Variable |
Logs Activity of… |
|---|---|
|
UASLOG_PORT |
Port Server (db_rsiserver) |
|
UASLOG_NET |
(Net) Server (db_netserver) |
|
UASLOG_ORA |
Oracle Server (db_oraserver) |
|
UASLOG_INF |
Informix Server (db_infserver) |
|
UASLOG_ING |
Ingres Server (db_ingserver) |
|
UASLOG_JDB |
JDBC Server (db_jdbserver) |
|
UASLOG_REC |
Recital Server (db_recserver) |
Extract from profile.uas:
UASLOG_PORT="port.log" ; export UASLOG_PORT UASLOG_NET="net.log" ; export UASLOG_NET UASLOG_ORA="ora.log" ; export UASLOG_ORA UASLOG_INF="inf.log" ; export UASLOG_INF UASLOG_ING="ing.log" ; export UASLOG_ING UASLOG_JDB="jdb.log" ; export UASLOG_JDB UASLOG_REC="rec.log" ; export UASLOG_REC |
DB_LOGDIR
If the environment variable DB_LOGDIR is set to an existing directory, all log files will be written to this directory. If not, the log files will be created in the UAS directory.
DB_LOGDIR is set in the UAS/profile.uas file. By default it is set to the UAS/log directory:
DB_LOGDIR=${DB_ROOT}log/ ; export DB_LOGDIR
|
DB_LOGVER
If the environment variable DB_LOGVER is enabled, version numbers are added to the file names. For example, the activity of the first Net Server process will be logged to net.log, the second to net001.log, the third to net002.log etc.
DB_LOGVER is set in the UAS/profile.uas file:
DB_LOGVER="yes" ; export DB_LOGVER |
To enable the system log file for the Recital Universal Application Server for OpenVMS, include the following command in the db_uas:config.db file:
set syslogging on |
To set up Client/Server logging, one or more of the following symbols can be added to the db_uas:login.com file. The Recital Universal Application Server must be restarted before symbol changes will be recognized. Each symbol should be set to the name of a log file.
|
Symbol |
Logs Activity of… |
|---|---|
|
UASLOG_PORT |
Port Server (db_rsiserver) |
|
UASLOG_NET |
(Net) Server (db_netserver) |
|
UASLOG_ORA |
Oracle Server (db_oraserver) |
|
UASLOG_INF |
Informix Server (db_infserver) |
|
UASLOG_ING |
Ingres Server (db_ingserver) |
|
UASLOG_JDB |
JDBC Server (db_jdbserver) |
|
UASLOG_REC |
Recital Server (db_recserver) |
Extract from db_uas:login.com
$ uaslog_port :== port.log $ uaslog_net :== net.log $ uaslog_ora :== ora.log $ uaslog_inf :== inf.log $ uaslog_ing :== ing.log $ uaslog_jdb :== jdb.log $ uaslog_rec :== rec.log |
DB_LOGDIR
If the symbol DB_LOGDIR is set to an existing directory, all log files will be written to this directory. If not, the log files will be created in the UAS directory.
DB_LOGDIR is set in the db_uas:login.com file. By default it is set to the UAS.log] directory:
$db_logdir :== 'db_root'.log] ! system logging directory |
DB_LOGVER
If the symbol DB_LOGVER is enabled, version numbers are added to the file names. For example, the activity of the first Net Server process will be logged to net.log, the second to net001.log, the third to net002.log etc.
DB_LOGVER is set in the db_uas:login.com file:
$db_logver :== true ! enable multiple log files |
To enable the system log file for Recital Terminal Developer for Windows, include the following command in the UD/config.db file:
set syslogging on |
To enable the system log file for Recital Terminal Developer for Linux, include the following command in the UD/config.db file:
set syslogging on |
To enable the system log file for Recital Terminal Developer for UNIX, include the following command in the UD/config.db file:
set syslogging on |
To enable the system log file for Recital Terminal Developer for OpenVMS, include the following command in the db_ovd:config.db file:
set syslogging on |