Genetec / Milestone Hanwha Plug-in Debug Log Setting Method
Overview:
This guide provides the steps to configure log settings for Genetec Plug-in v1.04.00 (or later) and Milestone Plug-in v1.05.00 (or later), as well as for older versions of the plug-ins. Adjusting the log level is essential for troubleshooting and monitoring the system's performance.
Log Setting Method for Genetec Plug-in v1.04.00 (or later) and Milestone Plug-in v1.05.00 (or later)
Step 1: Modify the Configuration File
- Navigate to
C:\ProgramData\Hanwha Vision Plug-in\. - Open the relevant configuration file that you wish to modify.
-
Locate the line that specifies
minlevel="Info"and change it tominlevel="Debug".- Genetec's Configuration Files:
SecurityDesk.logger.configServer.logger.configConfigTool.logger.config
- Milestone's Configuration Files:
Administration.logger.configService.logger.configSmartClient.logger.config
Example of the configuration change:
<?xml version="1.0" encoding="utf-8"?> … <rules> <logger name="*" minlevel="Info" <!--Change "Info" to "Debug"--> writeTo="asyncWrapper" /> </rules> </nlog> - Genetec's Configuration Files:
Step 2: Restart the System
Restart the system for which you want to collect logs:
- If it's the server, restart the server.
- If it's the client, restart the client.
Step 3: Locate the Log Files
After restarting, the log files will be generated in the same directory as the configuration files you modified (C:\ProgramData\Hanwha Vision Plug-in\).
Step 4: Reproduce the Issue
Reproduce the issue you want to log to ensure the necessary events are captured in the log files.
Step 5: Submit the Log Files
Retrieve the log files from the directory you specified in Step 2 (C:\ProgramData\Hanwha Vision Plug-in\) and send them for analysis.
Step 6: Reset Logging
Logging at the Debug level can increase the amount of data generated, which may affect system performance, so it is recommended to reset the logging configuration once troubleshooting is complete.
Log Setting Method for Genetec Plug-in v1.03.00 (or earlier) and Milestone Plug-in v1.04.00 (or earlier)
Step 1: Save the Config.ini File
Save the attached config.ini file to the plug-in installation directory:
C:\Program Files (x86)\Security Center Plugins\HanwhaVision.AICameraServerC:\Program Files (x86)\Security Center Plugins\HanwhaVision.AICameraClient
Step 2: Modify the Log Path in the Config.ini File
- Open the
config.inifile. -
Modify the
strPathvalue to specify the directory where log files will be saved.Example:
strPath : D:\PluginLogs
Step 3: Restart Genetec Server
Restart the Genetec Server for the changes to take effect.
Step 4: Reproduce the Issue
Reproduce the issue you want to log to ensure the necessary events are captured in the log files.
Step 5: Submit the Log Files
Retrieve the log files from the directory you specified in Step 2 and send them for analysis.
Step 6: Reset Logging
After collecting the necessary logs, delete the config.ini file and restart the Genetec Server. This step is crucial to prevent performance degradation caused by continuous logging.
Note:
- Be sure to follow the steps carefully to avoid misconfigurations.
- Logging at the Debug level can increase the amount of data generated, which may affect system performance, so it is recommended to reset the logging configuration once troubleshooting is complete.