API Docs
LUXMiner commands
logset

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, and trace.

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 | jq

Examples

In this example, we are changing file log level to warn. This change will be persistent (as long as autosave is enabled).

$ 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

ParameterNotes
session_idA valid session ID. See Session Management for details.
paramsList of key-value parameters to change.