Revision dd88ec047cd9bdc87ffe94a4de7c784cb12ba910 authored by Dmitri Naumov on 06 March 2021, 11:29:10 UTC, committed by Dmitri Naumov on 08 March 2021, 12:21:22 UTC
1 parent 2453d1e
Logging.h
/**
* \file
*
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <spdlog/logger.h>
#include <memory>
#include <string>
namespace BaseLib
{
extern std::shared_ptr<spdlog::logger> console;
void setConsoleLogLevel(std::string const& level_string);
} // namespace BaseLib
template <typename... Args>
void DBUG(char const* fmt, Args const&... args)
{
BaseLib::console->debug(fmt, args...);
}
template <typename... Args>
void INFO(char const* fmt, Args const&... args)
{
BaseLib::console->info(fmt, args...);
}
template <typename... Args>
void WARN(char const* fmt, Args const&... args)
{
BaseLib::console->warn(fmt, args...);
}
template <typename... Args>
void ERR(char const* fmt, Args const&... args)
{
BaseLib::console->error(fmt, args...);
}
template <typename... Args>
void CRITICAL(char const* fmt, Args const&... args)
{
BaseLib::console->critical(fmt, args...);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...