FirmwareAPI DocumentationLUXminer commands
logset
Updates logging options
logset
Description
Updates logging options. The parameters are the session_id, followed by a comma-separated list of key-value pairs, in the format key=value. The available keys are:
- file_level: define the log level to be used for the log files. Valid values are:
fatal,error,warn,info,debug, andtrace.
The current logging configuration can be seen on the config command.
Notes:
- This commands requires a luxminer restart for the logging settings to be applied.
- If autosave is disabled, the changes will be lost after a reboot.
Command
$ echo '{"command": "logset", "parameter":"7Gycftno,file_level=warn"}' | nc $MINER_IP 4028 | jqExamples
In this example, we are changing file log level to warn. This change will be persistent.
$ echo '{"command": "logset", "parameter":"7Gycftno,file_level=warn"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 349,
"Description": "LUXminer 2023.12.13.205218-54b9ac9b",
"Msg": "Log configuration updated; restart luxminer to apply changes",
"STATUS": "S",
"When": 1702592304
}
],
"id": 1
}Parameters
| Parameter | Notes |
|---|---|
session_id | A valid session ID. See Session Management for details. |
params | List of key-value parameters to change. |