class cvflann::Logger

Overview

#include <logger.h>

class Logger
{
public:
    // methods

    static
    int
    error(
        const char* fmt,
        ...
        );

    static
    int
    fatal(
        const char* fmt,
        ...
        );

    static
    int
    info(
        const char* fmt,
        ...
        );

    static
    int
    log(
        int level,
        const char* fmt,
        ...
        );

    static
    void
    setDestination(const char* name);

    static
    void
    setLevel(int level);

    static
    int
    warn(
        const char* fmt,
        ...
        );
};

Detailed Documentation

Methods

static
int
log(
    int level,
    const char* fmt,
    ...
    )

Print log message

Parameters:

level Log level
fmt Message format

Returns:

static
void
setDestination(const char* name)

Sets the logging destination

Parameters:

name Filename or NULL for console
static
void
setLevel(int level)

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

Parameters:

level Logging level