The small3d library
Classes | Namespaces | Macros | Enumerations | Functions | Variables
Logger.hpp File Reference

Logger used in small3d. More...

#include <iostream>
#include <ostream>
#include <memory>

Go to the source code of this file.

Classes

class  small3d::Logger
 Used for logging through macros (LOGERROR, LOGDEBUG, LOGINFO) More...
 

Namespaces

 small3d
 

Macros

#define LOGERROR(MESSAGE)   logger->append(small3d::LogLevel::loggererror, MESSAGE)
 
#define LOGINFO(MESSAGE)   logger->append(small3d::LogLevel::loggerinfo, MESSAGE)
 
#define LOGDEBUG(MESSAGE)   logger->append(small3d::LogLevel::loggerdebug, MESSAGE)
 

Enumerations

enum  small3d::LogLevel { loggerinfo, loggerdebug, loggererror }
 Possible logging levels.
 

Functions

void small3d::initLogger ()
 Initialise the logger.
 
void small3d::deleteLogger ()
 Destroy the logger.
 

Variables

std::shared_ptr< small3d::Loggerlogger
 The logger object used by the logging macros.
 

Detailed Description

Logger used in small3d.

Created on: 2014/10/18 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file)

Macro Definition Documentation

◆ LOGDEBUG

#define LOGDEBUG (   MESSAGE)    logger->append(small3d::LogLevel::loggerdebug, MESSAGE)

Log debug information (only shows up when debugging)

◆ LOGERROR

#define LOGERROR (   MESSAGE)    logger->append(small3d::LogLevel::loggererror, MESSAGE)

Log an error

◆ LOGINFO

#define LOGINFO (   MESSAGE)    logger->append(small3d::LogLevel::loggerinfo, MESSAGE)

Log information (shows up even when not debugging)