def terminate(): # Set the log level to off. louis.setLogLevel(louis.LOG_OFF) # Unregister the liblouis logging callback. louis.registerLogCallback(None) # Free liblouis resources louis.liblouis.lou_free()
def initialize(): # Register the liblouis logging callback. louis.registerLogCallback(louis_log) # Set the log level to debug. # The NVDA logging callback will filter messages appropriately, # i.e. error messages will be logged at the error level. louis.setLogLevel(louis.LOG_DEBUG)