Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

Logger

public final class Logger

A container for static methods.

Nested Classes

Method Summary

Modifier and Type Method and Description
void

createAndroidLogger()

Creates a logger implementation that writes data to the Android log.

void

createCustomLogger(Logger.Callback callback)

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

void

createFileLogger(String path)

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

void

createStderrLogger()

Creates a logger implementation that writes data to stderr.

void

destroyLogger()

Destroys any previously created logger.

void

setLevel(Level level)

Sets the current log level.

Methods

public static void createAndroidLogger()

Creates a logger implementation that writes data to the Android log.

For more information, see vnc_Logger_createAndroidLogger().

public static void createCustomLogger(Logger.Callback callback) throws Library.VncException

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

For more information, see vnc_Logger_createCustomLogger().

public static void createFileLogger(String path) throws Library.VncException

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

For more information, see vnc_Logger_createFileLogger().

public static void createStderrLogger()

Creates a logger implementation that writes data to stderr.

For more information, see vnc_Logger_createStderrLogger().

public static void destroyLogger()

Destroys any previously created logger.

For more information, see vnc_Logger_destroyLogger().

public static void setLevel(Level level)

Sets the current log level.

For more information, see vnc_Logger_setLevel().

×