Program Listing for File Logging.h

Return to documentation for file (necsim/Logging.h)

// This file is part of necsim project which is released under MIT license.
// See file **LICENSE.txt** or visit for full license details

#include <string>
#include "Logger.h"
namespace necsim
    // Global declaration of logger
    extern Logger* logger;

    bool loggerIsSetup();

    void writeInfo(string message);

    void writeWarning(string message);

    void writeError(string message);

    void writeCritical(string message);

#ifdef DEBUG

    void writeLog(const int &level, string message);

    void writeLog(const int &level, stringstream &message);

#endif // DEBUG