protected void preNativeCall ( ) { //get logger Logger logger = this . getLogger ( ) ; //get log level LogLevel logLevel = logger . getLogLevel ( ) ; boolean debugMode = false ; if ( logLevel . equals ( LogLevel . DEBUG ) ) { debugMode = true ; } //set debug mode WindowsJNIFaxClientSpi . setDebugModeNative ( debugMode ) ; }
This function is invoked before any native call to set the native layer debug mode .