Changing logging level
The log’s level of detail can be changed by setting the logging level. The logging level can be set at any of the following values:
|
|
“Off” writes no information to the file and “Trace” writes as much information as possible to file. The default setting is “Info.”
New log files are created each day or whenever a log file reaches 1 MB in size. After 10 total log files of the same type have been created, the oldest file is automatically deleted when the next one is created. If more than 10 MB of data are needed in the log files, please contact Milestone Technical Support.
Here is the procedure to change the log levels:
Milestone
-
Go to the MilestoneEvent Server.
-
Open File Explorer. Select the View menu and enable Hidden items.
-
Open the following folder:
-
C:\ProgramData\VideoOS\VideoOS.Event.Server
-
-
Find the file: "VideoOS.Event.ServerNLog.xml" and open it with notepad.
-
The second to last line in the file is like this “<logger name="*" minlevel="Info" writeTo="mainlog" />”
-
Change the “Info” to “Debug” or “Trace,” or any other log level and save the file.
-
Depending on the OS you are running you may have to save the file to the desktop and copy it back to that folder because windows permissions will not let you save a file there directly.
-
OnGuard
-
Go to the OnGuard server.
-
Open File Explorer. Select the View menu and enable Hidden items.
-
Open the following folder:
-
C:\ProgramData\VideoOS\VideoOS.OnGuard.XPA.Service
-
Find the file: “VideoOS.OnGuard.XPA.ServiceNLog.xml” and open it with notepad.
-
Near the bottom of the file, find the lines that begin with:
-
<logger name="VideoOS.OnGuard.XPA.Translator.Managers.EventManager.ManagementEvents"
-
<logger name="VideoOS.OnGuard.XPA.Translator.Managers.EventManager"
-
<logger name="VideoOS.OnGuard.XPA.Translator.Managers.StateManager"
-
<logger name="VideoOS.OnGuard.XPA.Translator.BackwardCompatibility.BackwardCompatibilityManager"
-
<logger name="VideoOS.OnGuard.XPA.Translator.*"
-
<logger name="VideoOS.OnGuard.Client.*"
-
-
Change the “minlevel” attribute values in those lines from their current values to “Debug” or “Trace,” or any other log level.
-
Near the bottom, find this line in the file:
-
<logger name="*" minlevel="Info" writeTo="mainlog" />
-
-
Change the “minlevel” attribute values in that line from the current value to “Debug” or “Trace,” or any other log level and save the file.
-
Depending on the OS you are running you may have to save the file to the desktop and copy it back to that folder because windows permissions will not let you save a file there directly.
-