Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 to extend it using the "log_method481988523" 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\vax4106prod.log"



Panel
borderColor#0062AB
bgColor#FFFFFF
titleColor#FFFFFF
titleBGColor#0062AB
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 481988523) and/or when the log file is older than a specified number of days (see log_rotation_period 481988523).

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

If 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 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 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 specified. 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="vax4106prod"

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

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


...

Parameterlog_rotation_period
TypeText string

Value

  • "default" - default value, 7 days. This value is used even if the "log_rotation_period" is not specified.
  • "daily" or "1"
  • "weekly" or "7"
  • "never" or "0"
  • <N> - in N days

If the rotation log mode is enabled, this parameter controls switching to the next log file based on a period of time. If enabled, the switching to the next log file occurs at midnight.

Examples:

set session log_rotation_period="weekly"


set session log_rotation_period=14


...