K2 blackpearl Installation and Configuration Guide > Installation > Integration Configuration > Config File Changes > K2 Auditing and Logging | Send feedback |
K2 blackpearl provides native logging framework and auditing features that enables administrators to monitor and troubleshoot the K2 blackpearl environment. System Event Logging is initiated automatically (default operation) from product installation and is active through to runtime. System auditing features are initiated manually by the developer per individual process at design time and leveraged during runtime.
The logging and auditing features of K2 blackpearl are built into the platform but operate and are configured in different ways.
The steps described in this section will enable an administrator to enable logging, but without a full discussion of system requirements and possible implications. Be advised that the steps should only be pursued after reviewing the accompanying document or under the direction of a K2 Consultant.
Perform the following steps to enable HostServer Logging:
Open the following file in notepad: |
|||
Find the following section:
|
|||
Change the following line from: Change Change <LogLocation Name="ConsoleExtension" Active="True" LogLevel="Info" /> Change <LogLocation Name="FileExtension" Active="False" LogLevel="All" /> |
|||
Save and close the file |
|||
Restart the K2 service |
|||
By default the newly generated log file will be in the same directory as the modified config file. Alternatively verify the path in ‘LogFilePath’ setting in the config file. The log files will be in the [SystemDrive]:\Program Files\K2 blackpearl\Host Server\Bin\directory |
Perform the following steps to enable SmartObject Server Logging:
On all K2 Servers in the farm, you can enable detailed logging to help with SmartObject runtime debugging. To turn on the detailed, follow the below steps:
Open the following file in notepad: |
|||||
Change:
To:
|
|||||
Save your changes to the config file. |
|||||
Restart the K2HostServer service |
|||||
The log files will be created in the ‘path’ attribute for each setting. |
For additional information regarding Auditing and Logging read the K2 blackpearl Logging and Auditing white paper.