Show contents 

Knowledge Base > Additional Settings of Foresight Analytics Platform > Advanced Logging and Getting Additional Debug Info

In this article:

Introduction

Operation Log

Development Environment Debug Info

Debug Info of Task Scheduler

Advanced Logging and Getting Additional Debug Info

Introduction

When working in Foresight Analytics Platform, the kernel forms and outputs debug info. For details see specialized programs, for example, DebugView, which is included in the Sysinternals software package.

Debug info is not saved anywhere by default. In some cases it may be needed to determine the cause of some errors. For this purpose, the user can export debug info to a file. Settings for logging debug info are stored in the the operating system registry. Note that exporting debug info to a file slows down the development environment and applications. Thus, remove the parameters specified below after the problem is investigated and the log file is no more required.

The description below displays the example of the [HKEY_CURRENT_USER] registry key that is used only for the current user. If it is assumed to determine settings for all operating system users or settings are determined during the work with Foresight Analytics Platform BI server, the [HKEY_LOCAL_MACHINE] registry key should be used.

Operation Log

Debug messages are created and displayed by means of the REG_DWORD parameter WriteToDebugOutput located in the key [HKEY_CURRENT_USER\Software\Foresight\Foresight Analytics Platform\10.0\Log]. By default, this parameter can be absent in the registry, debug messages are displayed by the platform kernel. To disable displaying of all debug messages, except for information about loaded and unloaded libraries, create the WriteToDebugOutput parameter with the 0 value.

To export debug info to a file, make changes in the registry:

  1. Create the Log section in the registry key [HKEY_CURRENT_USER\Software\Foresight\Foresight Analytics Platform\10.0] if it is absent.

  1. Create the parameters in the Log section:

IMPORTANT. Logging of all debug info affects platform performance and significantly increases debug info amount in the file.

To output additional debug info of development environment and task scheduler make changes in the registry specified below.

Development Environment Debug Info

Debug info can be used to detect errors, which may cause memory leaks. To log in the file the debug info generated by development environment kernel, make changes in the registry:

  1. Make sure that the registry contains the Log section with the FileName and SeverityLevel parameters.

NOTE. Development environment debug info is output if the SeverityLevel parameter is set to 0, 1, or 2. Additionally, SQL queries to repository system tables are logged, which are created on addressing repository objects.

  1. Add the following parameters:

Debug Info of Task Scheduler

To log in the file the debug info generated by task scheduler, make changes in the registry.

IMPORTANT. Task scheduler and BI server must be started on different servers.

By default, debug info is output in Linux OS to the /var/log/syslog file if scheduler service file contains the PP_LOG=1 value.

To redetermine debug info file location and name in Linux OS:

  1. Create a configuration file to set up registry files with the *.reg extension, for example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Scheduler]

"Trace"=dword:00000003

[HKEY_LOCAL_MACHINE\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Log]

"FileName"="/var/log/Scheduler/name_for_log.log"

"SeverityLevel"=dword:00000003

Where:

    • Trace. Log information about container tasks. Parameter of the REG_DWORD type with the 3 value in the Scheduler section of the registry key [HKEY_CURRENT_USER\Software\Foresight\Foresight Analytics Platform\10.0].

    • FileName and SeverityLevel in the Log section in the registry key [HKEY_CURRENT_USER\Software\Foresight\Foresight Analytics Platform\10.0].

  1. Place the file at: /opt/foresight/fp10.x-biserver/etc/registry/.

  2. Make sure that PP_LOG=0 in the scheduler service file.

  1. Make sure that the registry contains the Log section with the FileName and SeverityLevel parameters.

  2. Create the Scheduler section in the registry key [HKEY_CURRENT_USER\Software\Foresight\Foresight Analytics Platform\10.0] if it is absent.

  3. In the Scheduler section create the Trace parameter of the REG_DWORD type with the 3 value. The parameter is used to log information about container tasks.

See also:

Additional Settings of Development Environment