2.14.2.4 debug_log
Brief Information
Create a debug log file. Use when log file requested by technical support.
Command Line Usage
1. debug_log;
2. debug_log nCtrl:=1;
3. debug_log nCtrl:=10;
4. debug_log nCtrl:=0;
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
Display Name
|
Variable Name
|
I/O and Type
|
Default Value
|
Description
|
|
nCtrl
|
Input
int
|
-1
|
0 means stop logging.
1 means create a new log file each Origin session. The old log file data will be deleted.
n>1 means appending to the log file until n MB is reached. After n MB is reached, the log file data is deleted, then logging continues.
|
Description
debug_log allows you to turn on or off logging. The log file can be used by OriginLab Corporation to diagnose a problem.
The command debug_log without any parameters shows the current setting, plus the name and location of the log file. Logging is off by default.
debug_log n, where n>0 will turn on logging. n=1 means turn on and refresh log each Origin session. n=2 means turn on logging and keep 2MB worth of data between sessions. When 2MB or more data is stored, the file is deleted at the start of the next Origin session, and logging continues.
To turn off debugging, run debug_log 0 .
Examples
To show current setting. 0 means no logging. > 0 means logging is occurring, use the following command:
debug_log
To create log. Create new log each Origin session, use the following command:
debug_log 1
To create log. Log up to 10 MB of data, append log from each Origin session, use the following command:
debug_log 10
To turn off logging, use the following command:
debug_log 0
Related X-Functions
|