@Namespace(value="libfreenect2")
public static class freenect2.Logger
extends org.bytedeco.javacpp.Pointer
/** Provide interfaces to receive log messages. You can inherit this class and implement your custom logger.
| Modifier and Type | Field and Description |
|---|---|
static int |
Debug
enum libfreenect2::Logger::Level
|
static int |
Error
enum libfreenect2::Logger::Level
|
static int |
Info
enum libfreenect2::Logger::Level
|
static int |
None
enum libfreenect2::Logger::Level
|
static int |
Warning
enum libfreenect2::Logger::Level
|
| Constructor and Description |
|---|
Logger(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultLevel()
Default is Info, or overridden by environment variable
LIBFREENECT2_LOGGER_LEVEL. |
int |
level()
Get the level of the logger; the level is immutable.
|
static org.bytedeco.javacpp.BytePointer |
level2str(int level)
Convert logging level to a human-readable name.
|
void |
log(int level,
org.bytedeco.javacpp.BytePointer message)
libfreenect2 calls this function to output all log messages.
|
void |
log(int level,
String message) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int None
public static final int Error
public static final int Warning
public static final int Info
public static final int Debug
public Logger(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@Cast(value="libfreenect2::Logger::Level") public static int getDefaultLevel()
LIBFREENECT2_LOGGER_LEVEL.
LIBFREENECT2_LOGGER_LEVEL can contain a case-insensitive name of level.@StdString
public static org.bytedeco.javacpp.BytePointer level2str(@Cast(value="libfreenect2::Logger::Level")
int level)
@Cast(value="libfreenect2::Logger::Level") public int level()
public void log(@Cast(value="libfreenect2::Logger::Level")
int level,
@StdString
org.bytedeco.javacpp.BytePointer message)
public void log(@Cast(value="libfreenect2::Logger::Level")
int level,
@StdString
String message)
Copyright © 2018. All rights reserved.