|  Developer
Updated on May 6, 2022

hub.log.local.set

  • Change a logging level on the controller. Newly set values will be applied immediately in the current and all future sessions.
  • The level has been set hides all records with a lower logging level. Use to show only errors; to show errors, warnings and info records; to show everything.
Edit
Field Required Type Description
params.severity + enum Log severity level to write, one of: , , , ,
params.color bool If – enables to write coloured logs
params.indent int One of , , , . Sets the indentation value for JSON objects pretty-printing. -1: print minified JSON, 8 – print JSON indented with 8 bytes offset.
Edit
Broadcasts Description
hub.setting.updated Up to three hub settings could be updated by the command: , ,
Edit
Code Message Data
-32602 The severity with this name does not exist
-32600 Wrong params, (FIELD)
Edit
Edit
Edit
Set logging level to , all other options will not be modified:
				
					{
    "id": "_ID_",
    "method": "hub.log.local.set",
    "params": {
        "severity": "INFO"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Call
Set logging level to , turn logs colouring on, indent JSON objects using 8 spaces for maximum JSON objects pretty-printing.
				
					{
    "id": "_ID_",
    "method": "hub.log.local.set",
    "params": {
        "severity": "DEBUG",
        "color": true,
        "indent": 8
    }
}				
			
For every changed hub setting the hub.setting.updated broadcast will occur.