Iroha - A simple, decentralized ledger http://iroha.tech
logger.hpp File Reference
#include <memory>
#include <numeric>
#include <string>
#include <spdlog/fmt/ostr.h>
#include <spdlog/spdlog.h>
Include dependency graph for logger.hpp:

Go to the source code of this file.




using logger::Logger = std::shared_ptr< spdlog::logger >


template<typename StreamType , typename T >
auto operator<< (StreamType &os, const T &object) -> decltype(os<< object.toString())
std::string logger::red (const std::string &string)
std::string logger::yellow (const std::string &string)
std::string logger::output (const std::string &string)
std::string logger::input (const std::string &string)
Logger logger::log (const std::string &tag)
Logger logger::testLog (const std::string &tag)
std::string logger::boolRepr (bool value)
template<typename T >
std::string logger::logBool (T val)
template<class Collection , class Lambda >
std::string logger::to_string (const Collection &collection, Lambda transform)
template<class Optional , class Lambda >
std::string logger::opt_to_string (const Optional &opt, Lambda transform)

Function Documentation

template<typename StreamType , typename T >
auto operator<< ( StreamType &  os,
const T &  object 
) -> decltype(os << object.toString())

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0Allows to log objects, which have toString() method without calling it, e.g. log.info("{}", myObject)