- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/Logger.h File Reference

`#include <fstream>`
`#include <sstream>`
`#include <map>`
`#include <string>`
`#include "config.h"`

Go to the source code of this file.

## Classes
class | Logger
## Defines
#define | LOG_DEBUG 0
#define | LOG_INFO 1
#define | LOG_WARN 2
#define | LOG_ERROR 3
#define | LOG_FATAL 4
#define | LOG_NONE 5
#define | _DEBUG(msg)
#define | _INFO(msg)
#define | _WARN(msg)
#define | _ERROR(msg)
#define | _FATAL(msg)

## Define Documentation

#define _DEBUG | ( | msg |  | ) |

Value:

    {\
        if (Logger::getLevel() == LOG_DEBUG) Logger::_oss << "DEBUG " << __PRETTY_FUNCTION__ << ":" << __LINE__ << " ";\
        Logger::_oss << msg;\
        Logger::getInstance()->log(LOG_DEBUG);\
    };

#define _ERROR | ( | msg |  | ) |

Value:

    {\
        if (Logger::getLevel() == LOG_DEBUG) Logger::_oss << "ERROR " << __PRETTY_FUNCTION__ << ":" << __LINE__ << " ";\
        Logger::_oss << msg;\
        Logger::getInstance()->log(LOG_ERROR);\
    };

#define _FATAL | ( | msg |  | ) |

Value:

    {\
        if (Logger::getLevel() == LOG_DEBUG) Logger::_oss << "FATAL ERROR " << __PRETTY_FUNCTION__ << ":" << __LINE__ << " ";\
        Logger::_oss << msg;\
        Logger::getInstance()->log(LOG_FATAL);\
    };

#define _INFO | ( | msg |  | ) |

Value:

    {\
        if (Logger::getLevel() == LOG_DEBUG) Logger::_oss << "INFO " << __PRETTY_FUNCTION__ << ":" << __LINE__ << " ";\
        Logger::_oss << msg;\
        Logger::getInstance()->log(LOG_INFO);\
    };

#define _WARN | ( | msg |  | ) |

Value:

    {\
        if (Logger::getLevel() == LOG_DEBUG) Logger::_oss << "WARNING " << __PRETTY_FUNCTION__ << ":" << __LINE__ << " ";\
        Logger::_oss << msg;\
        Logger::getInstance()->log(LOG_WARN);\
    };

#define LOG_DEBUG 0

#define LOG_ERROR 3

#define LOG_FATAL 4

#define LOG_INFO 1

#define LOG_NONE 5

#define LOG_WARN 2