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

Go to the source code of this file.


class  logger::Logger




enum  logger::LogLevel {
  logger::LogLevel::kTrace, logger::LogLevel::kDebug, logger::LogLevel::kInfo, logger::LogLevel::kWarn,
  logger::LogLevel::kError, logger::LogLevel::kCritical
 Log levels. More...


template<typename StreamType , typename T >
auto operator<< (StreamType &os, const T &object) -> decltype(os<< object.toString())
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)