Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Log rotation mode updated with more details

...

Parameterlog
TypeText string
Value

The log file or directory name is where the log file for each CHARON-VAX / CHARON-PDP execution session is stored.

Panel
borderColor#3AAADC
bgColor#FFFFFF
titleColor#FFFFFF
titleBGColor#3AAADC
titleLog specified as a file name

It is possible to overwrite the existing log file or extend it using the "log_method" parameter.

(info) The "log_method" parameter is effective only when a single log file is specified, not a directory.

Example:

set session log="C:\Charon\es40prod.log"
Panel
borderColor#3AAADC
bgColor#FFFFFF
titleColor#FFFFFF
titleBGColor#3AAADC
titleLog specified as a directory

CHARON-VAX / CHARON-PDP automatically creates individual log files for each CHARON-VAX / CHARON-PDP execution session. If the log parameter is omitted CHARON-VAX / CHARON-PDP creates a log file for each CHARON-VAX / CHARON-PDP execution session in the directory where the emulator was started. In these two cases, the log rotation mode is enabled, meaning a new log file is created each time the virtual machine is started and when the log file size exceeds the one specified (see log_file_size) and/or when the log file is older than a specified number of days (see log_rotation_period).

(info) A shortcut located in the same directory will be created, pointing to the active log file. Its name depends on the settings defined, is based on the hw_model parameter or the configuration_name and hw_modelparameter if specified.

If only a directory name is specified in the "log" parameter and the "configuration_name" parameter of the session is specified, the log file name is composed as follows:

<configuration_name>-YYYY-MM-DD-hh-mm-ss-xxxxxxxxx.log

If only a directory name is specified in the "log " parameter and the "configuration_name" parameter is omitted, the log file name will have the following format:

<hw_model>-YYYY-MM-DD-hh-mm-ss-xxxxxxxxx.log

where "xxxxxxxxx is " is an increasing decimal integer, starting from 000000000 to separate log files with the same time of creation (in case the log is being created faster than one log file per second).

(warning) Only existing directory can be used as a value of the "log" parameterspecified. If the directory specified does not exist, this will be considered as a flat file. No trailing \ backslash character is allowed.

Example:

set session configuration_name="es40prod"

set session log="C:\Charon\Logs"

The execution of the virtual machine will create a log file, named C:\Charon\Logs\es40prod-2016-10-13-10-00-00-000000000.log (for example) and a shortcut named C:\Charon\Logs\es40prod.log pointing to this file


log_method

Parameterlog_method
TypeText string
Value
  • "overwrite" (default)
  • "append"

Determines if the previous log information is maintained.

Info

This parameter must be specified only in addition to “log” parameter on the same line.

This parameter is applicable only if the CHARON-VAX / CHARON-PDP log is stored to a file that is specified explicitly with the "log" parameter.

Example:

set session log="log.txt" log_method="append"

...