Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

How do I enable trace logging?

wearyhacker
New Contributor I
1,714 Views

I want to enable trace logging. So I can see in detail what this openvino-dev python snippet is doing.

import openvino.runtime as ov
core = ov.Core()
print (core.available_devices)

I have built and installed openvino with debug enabled. I have set the OPENVINO_LOG_LEVEL environment variable to 5.

What more do I need to do to see some trace logging. If log files are being created where are they?

Thanks,

Roger

Labels (1)
0 Kudos
1 Solution
Hairul_Intel
Moderator
1,691 Views

Hi Roger,

Thank you for reaching out to us.

 

For your information, the LOG_LEVEL property is only for Debugging Auto-Device Plugin. As stated in the documentation, the OPENVINO_LOG_LEVEL provides the user with information on exceptions and error values for Auto-Device plugin only and not OpenVINO functions as a whole.

 

The code snippet you shared is only printing out a list of available devices and thus will not print any log info since it is not using the Auto-Device plugin.

 

Here is the result for setting the OPENVINO_LOG_LEVEL=5 and running Hello Classification Python Sample with AUTO device configuration:

log_level.png

 

 

Regards,

Hairul

 

View solution in original post

0 Kudos
2 Replies
Hairul_Intel
Moderator
1,692 Views

Hi Roger,

Thank you for reaching out to us.

 

For your information, the LOG_LEVEL property is only for Debugging Auto-Device Plugin. As stated in the documentation, the OPENVINO_LOG_LEVEL provides the user with information on exceptions and error values for Auto-Device plugin only and not OpenVINO functions as a whole.

 

The code snippet you shared is only printing out a list of available devices and thus will not print any log info since it is not using the Auto-Device plugin.

 

Here is the result for setting the OPENVINO_LOG_LEVEL=5 and running Hello Classification Python Sample with AUTO device configuration:

log_level.png

 

 

Regards,

Hairul

 

0 Kudos
Hairul_Intel
Moderator
1,668 Views

Hi Roger,

This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Hairul


0 Kudos
Reply