Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

Logger

Method Summary

Modifier and Type Method and Description

create_stderr_logger()

Creates a logger implementation that writes data to sys.stderr.

create_custom_logger(callback)

Creates a logger implementation that calls the given callback whenever a log message is written.

create_file_logger(path)

Creates a logger that writes data to the specified log file.

destroy_logger()

Destroys any previously created logger.

set_level(level)

Sets the current log level.

Static methods

static vncsdk.Logger.create_stderr_logger()

Creates a logger implementation that writes data to sys.stderr.

This destroys any previously-created logger.

vncsdk.Logger.create_custom_logger(callback)

Creates a logger implementation that calls the given callback whenever a log message is written.

For more information, see vnc_Logger_createCustomLogger().

Parameters:callback (vncsdk.Logger.Callback) –
vncsdk.Logger.create_file_logger(path)

Creates a logger that writes data to the specified log file.

For more information, see vnc_Logger_createFileLogger().

Parameters:path (str) –
vncsdk.Logger.destroy_logger()

Destroys any previously created logger.

For more information, see vnc_Logger_destroyLogger().

vncsdk.Logger.set_level(level)

Sets the current log level.

For more information, see vnc_Logger_setLevel().

Parameters:level (vncsdk.Logger.Level) –
×