@Namespace(value="libfreenect2") @Properties(inherit=freenect2.class) public class Logger extends Pointer
/** Provide interfaces to receive log messages. You can inherit this class and implement your custom logger.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
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(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 BytePointer |
level2str(int level)
Convert logging level to a human-readable name.
|
void |
log(int level,
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, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public 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(Pointer p)
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 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 BytePointer message)
public void log(@Cast(value="libfreenect2::Logger::Level") int level, @StdString String message)
Copyright © 2023. All rights reserved.