Not sure if APH are providing daily or other snapshot type builds, but I know we are aiming for a new build on 1 August.
If waiting is too much then it is a case of getting the source code from the repository and building. Only the brailleblaster.jar would need rebuilding.
If building is an issue then I guess I could build it for you, but I would prefer not to as I don't want to end up doing it for everyone.
Michael Whapples On 15/07/2014 16:56, Cearbhall O'Meadhra wrote:
Great news, Michael! How can I find a version to download where this change is applied? All the best, Cearbhall M: 0833323487 T: (01) 2864623 em: cearbhall.omeadhra@xxxxxxx ---------------------------------------------------------------------------- ----- I use the free version of Spam Reader to get rid of spam. The Professional version doesn't have this disclaimer in outgoing emails. Try Spam Reader (http://www.spam-reader.com) for free now!-----Original Message-----From: brailleblaster-bounce@xxxxxxxxxxxxx [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of brailleblaster@xxxxxxxxxxxxxx Sent: 15 July 2014 14:31 To: brailleblaster@xxxxxxxxxxxxx Subject: [brailleblaster] push by mwhapples - Fixed log handling so that liblouisutdml logging goes through BrailleB... on 2014-07-15 13:30 GMT Revision: f412f880e137 Branch: default Author: Michael Whapples Date: Tue Jul 15 13:30:29 2014 UTC Log: Fixed log handling so that liblouisutdml logging goes through BrailleBlaster's logger. http://code.google.com/p/brailleblaster/source/detail?r=f412f880e137 Added: /src/main/org/brailleblaster/louisutdml/LogHandler.java Modified: /src/main/org/brailleblaster/BBIni.java ======================================= --- /dev/null +++ /src/main/org/brailleblaster/louisutdml/LogHandler.java Tue Jul 15 13:30:29 2014 UTC @@ -0,0 +1,33 @@ +package org.brailleblaster.louisutdml; + +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.HashMap; +import java.util.Map; + +import org.liblouis.LogCallback; +import org.liblouis.LogLevel; + +public class LogHandler implements LogCallback { + + private final static Map<Integer, Level> LEVEL_MAPPINGS = new HashMap<Integer, Level>(); + static { + LEVEL_MAPPINGS.put(LogLevel.FATAL, Level.SEVERE); + LEVEL_MAPPINGS.put(LogLevel.ERROR, Level.SEVERE); + LEVEL_MAPPINGS.put(LogLevel.WARNING, Level.WARNING); + LEVEL_MAPPINGS.put(LogLevel.INFO, Level.INFO); + LEVEL_MAPPINGS.put(LogLevel.DEBUG, Level.FINE); + LEVEL_MAPPINGS.put(LogLevel.OFF, Level.OFF); + LEVEL_MAPPINGS.put(LogLevel.ALL, Level.ALL); + } + private Logger logger; + public LogHandler(Logger logger) { + this.logger = logger; + } + @Override + public void logMessage(int level, String message) { + Level javaLogLevel = LEVEL_MAPPINGS.get(level); + this.logger.log(javaLogLevel, message); + } + +} ======================================= --- /src/main/org/brailleblaster/BBIni.java Fri Jun 20 19:05:47 2014 UTC +++ /src/main/org/brailleblaster/BBIni.java Tue Jul 15 13:30:29 2014 UTC @@ -49,6 +49,7 @@ import org.brailleblaster.util.PropertyFileManager; import org.eclipse.swt.SWT; import org.liblouis.LibLouisUTDML; +import org.liblouis.LogLevel; /** @@ -256,6 +257,8 @@ } try { LibLouisUTDML.loadLibrary(nativeLibraryPath, nativeLibrarySuffix); + // LibLouisUTDML.getInstance().setLogLevel(LogLevel.ERROR); + LibLouisUTDML.getInstance().registerLogCallback(new org.brailleblaster.louisutdml.LogHandler(logger)); LibLouisUTDML.initialize(programDataPath, tempFilesPath, "liblouisutdml.log"); hLiblouisutdml = true; }