Add external logger interface.

This commit is contained in:
Peter Johnson
2016-12-10 23:49:50 -08:00
parent 2b8b8e7403
commit 28a2ba4bf8
6 changed files with 117 additions and 0 deletions

View File

@@ -184,6 +184,15 @@ public class CameraServerJNI {
public static native void removeListener(int handle);
//
// Logging Functions
//
@FunctionalInterface
public interface LoggerFunction {
void apply(int level, String file, int line, String msg);
}
public static native void setLogger(LoggerFunction func, int minLevel);
//
// Utility Functions
//