Difference between revisions of "Debug level"

From WICE Wiki v2.91
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[File:Screenshot from 2021-04-01 09-34-02.png|thumb|The debug level chooser which can be reached through [[Vehicles]], choosing a vehicle and pressing the button "Modules" and choose any module.]]
[[File:Screenshot from 2021-04-01 09-34-02.png|thumb|The debug level chooser which can be reached through [[Vehicles]], choosing a vehicle and pressing the button "Modules" and choose any module.]]
Debug level - when configured in any of the modules - refers to the level of logging that the WCU will output when handling the task related to the module. The lower the level the less logging will occur.  
Debug level - when configured in any of the modules - refers to the level of logging that the WCU will output when handling the task related to the module. The lower the level the less logging will occur. Exactly what type of logging that will occur depends on the task. But in general it can be said that:


There are ten log levels - 0-9 and the following is logged at each level:
* '''0:''' No logging produced. (Some other more general logging surrounding the task creation might still be created).
 
* '''1:''' Error messages of serious nature.
* 0:
* '''2:''' Normal logging - works well for normal use. (The default level)
* 1:  
* '''3 and above''': Fine logging for detailed debugging. Might generate substantial amounts of log outputs and is not recommended for normal use.  
* 2:  
* 3:  
* 4:
* 5:
* 6:
* 7:
* 8:
* 9:
 
As an illustration, if e.g. a [[Creating a Task#File fetcher|File Fetcher task]] is created when the debug level is set to 9 in [[WCU platform#File Fetcher Module|the File Fetcher Module]]. Then the WCU will produce logs for levels 1-9 regarding its handling of the File Fetcher task.


The logs can be fetched by selecting a WCU in [[Tasks Tab]] or [[Vehicles]] and pressing the button "Get Log Files". They are named after the task that has been run and in which state of the running they have been created.
The logs can be fetched by selecting a WCU in [[Tasks Tab]] or [[Vehicles]] and pressing the button "Get Log Files". They are named after the task that has been run and in which state of the running they have been created.

Latest revision as of 15:29, 2 February 2022

The debug level chooser which can be reached through Vehicles, choosing a vehicle and pressing the button "Modules" and choose any module.

Debug level - when configured in any of the modules - refers to the level of logging that the WCU will output when handling the task related to the module. The lower the level the less logging will occur. Exactly what type of logging that will occur depends on the task. But in general it can be said that:

  • 0: No logging produced. (Some other more general logging surrounding the task creation might still be created).
  • 1: Error messages of serious nature.
  • 2: Normal logging - works well for normal use. (The default level)
  • 3 and above: Fine logging for detailed debugging. Might generate substantial amounts of log outputs and is not recommended for normal use.

The logs can be fetched by selecting a WCU in Tasks Tab or Vehicles and pressing the button "Get Log Files". They are named after the task that has been run and in which state of the running they have been created.