Setting Log Levels
Function
Sets the log levels for the host and device.
Syntax
IDE-daemon-client --host <host_ip>:<port> [--device <deviceID>] --log '<params>'
Parameter
Parameter |
Description |
Mandatory or Not |
Default Value |
---|---|---|---|
--host |
|
Yes |
The default value of port is 22118. |
--device |
If the host is connected to multiple devices, you can specify a device by using --device deviceID. If the device is not specified, the device with deviceID of 0 is used by default. |
No |
The default value of deviceID is 0. |
--log |
params includes the following items:
|
Yes |
- |
Example
- Log in to the server on the host as the HwHiAiUser user.
- Run the following commands to set the log level for the host and device:
IDE-daemon-client --host xx.xx.xx.xx:22118 --log 'SetLogLevel(0)[error]' IDE-daemon-client --host xx.xx.xx.xx:22118 --log 'SetLogLevel(1)[slog:error]' IDE-daemon-client --host xx.xx.xx.xx:22118 --log 'SetLogLevel(2)[enable]'
- Replace xx.xx.xx.xx with the actual IP address of the host.
- The value of Module name is defined in the enumerated format. The options are as follows:
enum {
DLOG = 0, // Dlog
SLOG, // Slog
IDEDD, // IDE daemon device
IDEDH, // IDE daemon host
LOGAGTH, // log agent host
HCCL, // HCCL
FMK, // Framework
HIAIENGINE, // Matrix
DVPP, // DVPP
RUNTIME, // Runtime
CCE, // CCE
#if (OS_TYPE == LINUX)
HDC, // HDC
#else
HDCL, // HDCL windows has a def with the same name HDC, so change HDC to HDCL
#endif
DRV, // Driver
MDCCONTROL, // Mdc control
MDCFUSION, // Mdc fusion
MDCLOCATION, // Mdc location
MDCPERCEPTION, // Mdc perception
MDCMOP,
MDCFSM,
MDCCOMMON,
MDCMONITOR,
MDCBSWP, // MDC basesoftware platform
MDCDEFAULT, // MDC UNDEFINE
MDCSC, // MDC spatial cognition
MDCBP,
MDCTF,
MLL,
DEVMM, // Dlog memory managent
KERNEL, // Kernel
MDCSMCMD, // sm_control_cmd
MDCSCREEN, // parking_spot_screen
LIBMEDIA, // Libmedia
CCECPU, // ai cpu
ASCENDDK, // AscendDK
ROS, // ROS
HCCP,
RoCE,
TEFUSION,
PROFILING, // Profiling
DP, // Data Preprocess
APP, // User Application call HIAI_ENGINE_LOG
INVLID_MOUDLE_ID
};
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot