Revision 75ae9cf6f4a21b6fabf5ac71113d071ec6246511 authored by rldhont on 04 May 2021, 16:06:09 UTC, committed by Nyall Dawson on 10 May 2021, 20:24:57 UTC
1 parent 787eba2
mdal_logger.hpp
/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2020 Tomas Mizera (tomas.mizera2 at gmail dot com)
*/
#ifndef MDAL_LOGGER_H
#define MDAL_LOGGER_H
#include <string>
#include "mdal_utils.hpp"
namespace MDAL
{
/**
* Namespace including functions responsible for handling logs.
*
* Use in code as: MDAL::Log::error/warning( MDAL_Status, logMessage ).
* By default, output from logger is set to standard stdout, but it is
* possible to set custom logger output with function setLoggerCallback.
*/
namespace Log
{
void error( MDAL::Error );
void error( MDAL::Error err, std::string driver );
void error( MDAL_Status status, std::string mssg );
void error( MDAL_Status status, std::string driverName, std::string mssg );
void warning( MDAL_Status status, std::string mssg );
void warning( MDAL_Status status, std::string driverName, std::string mssg );
void info( std::string mssg );
void debug( std::string mssg );
MDAL_Status getLastStatus();
void resetLastStatus();
void setLoggerCallback( MDAL_LoggerCallback callback );
void setLogVerbosity( MDAL_LogLevel verbosity );
}
}
#endif // MDAL_LOGGER_H
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...