The small3d library
Tiny C++ 3D game development library for Win/MacOS/Linux/FreeBSD
Loading...
Searching...
No Matches
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

namespace  small3d
 

Macros

#define LOGERROR(MESSAGE)
 
#define LOGINFO(MESSAGE)
 
#define LOGDEBUG(MESSAGE)
 

Enumerations

enum class  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)
Value:
logger->append(small3d::LogLevel::loggerdebug, MESSAGE)
std::shared_ptr< small3d::Logger > logger
The logger object used by the logging macros.
Definition Logger.cpp:14

Log debug information (only shows up when debugging)

◆ LOGERROR

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

Log an error

◆ LOGINFO

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

Log information (shows up even when not debugging)