ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::Logger Class Reference

#include <logger.h>

Static Public Member Functions

static void setLevel (int level)
 
static int getLevel ()
 
static void setDestination (const char *name)
 
static int log (int level, const char *fmt,...)
 
static int fatal (const char *fmt,...)
 
static int error (const char *fmt,...)
 
static int warn (const char *fmt,...)
 
static int info (const char *fmt,...)
 
static int debug (const char *fmt,...)
 

Detailed Description

Definition at line 43 of file logger.h.

Member Function Documentation

◆ debug()

static int flann::Logger::debug ( const char *  fmt,
  ... 
)
inlinestatic

Definition at line 128 of file logger.h.

◆ error()

◆ fatal()

static int flann::Logger::fatal ( const char *  fmt,
  ... 
)
inlinestatic

Definition at line 124 of file logger.h.

◆ getLevel()

static int flann::Logger::getLevel ( )
inlinestatic

Returns the currently set logging level.

Returns
current logging level

Definition at line 91 of file logger.h.

Referenced by flann::AutotunedIndex< Distance >::buildIndex().

◆ info()

◆ log()

static int flann::Logger::log ( int  level,
const char *  fmt,
  ... 
)
inlinestatic

Print log message

Parameters
levelLog level
fmtMessage format
Returns

Definition at line 105 of file logger.h.

◆ setDestination()

static void flann::Logger::setDestination ( const char *  name)
inlinestatic

Sets the logging destination

Parameters
nameFilename or NULL for console

Definition at line 97 of file logger.h.

References name.

◆ setLevel()

static void flann::Logger::setLevel ( int  level)
inlinestatic

Sets the logging level. All messages with lower priority will be ignored.

Parameters
levelLogging level

Definition at line 85 of file logger.h.

Referenced by flann::log_verbosity().

◆ warn()

static int flann::Logger::warn ( const char *  fmt,
  ... 
)
inlinestatic

Definition at line 126 of file logger.h.


The documentation for this class was generated from the following file: