Description:
The only purpose of this function is to give access to print or printerr from pygobject.
libnm can do debug logging by setting LIBNM_CLIENT_DEBUG and uses thereby printerr or print. A plain "print()" function in python is not in sync with these functions (it implements additional buffering). By using print, the same logging mechanisms can be used.
Also, libnm honors LIBNM_CLIENT_DEBUG_FILE environment. If this is set to a filename pattern (accepting "p"
for the process ID), then the debug log is written to that file instead. With output_mode
zero, the same location will be written.
Since: 1.44.
Parameters:
output_mode |
if 1 it uses print. If 2, it uses printerr. If 0, it uses the same output as internal libnm debug logging does. That is, depending on LIBNM_CLIENT_DEBUG's "stdout" flag it uses print or printerr and if LIBNM_CLIENT_DEBUG_FILE is set, it writes the output to file instead |
msg |
the message to print. The function does not append a trailing newline. |