Logging
Updated 05 Apr 2018
|
Upper levels: - QuArK Information Base - 4. The Source Code - 4.4. Specific Topics |
4.4.8. Logging |
[ | - - ]
From the Delphi code To output information to the QUARK.LOG, use the Log-call defined in the Logging.pas file. There are several ways it can be called. The first parameter is optional and indicates the part of the code trying to log an item. It is of the TLogName type: TLogName: LOG_DEFAULT, LOG_PASCAL, LOG_PYTHON, LOG_SYS, LOG_DEBUG. The second, also optional parameter indicated the severity of the item
to be logged. All calls to Log with a level equal or lower to the level-
setting will be logged, the rest will be ignored. The default logging
level is 20. To set the log level, see the information about Environmental
variables below. Internally, QuArK uses aLog to actually output the information to the log file. This procedure should not be called directly. Environmental variables for Logging QuArK reads several environmental variables to control logging. These are not set via a configuration file, because a problem with the file could cause a failure to create a logfile. Environmental variables can be set in the operating system. The following variables are related to logging and can be set: QUARK_LOG_FILENAME: The name of the file to log to. This file will be
cleared when QuArK starts up. See 'Logging.pas' for more on logging. |
Copyright (c) 2022, GNU General Public License by The QuArK (Quake Army Knife) Community - https://quark.sourceforge.io/ |
[ Top - ] | -