Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <ctime>
#include <chrono>
#include "vector_ref.h"
#include "Common.h"
#include "CommonIO.h"
#include "CommonData.h"
#include "FixedHash.h"
#include "Terminal.h"
Go to the source code of this file.
Classes | |
class | dev::NullOutputStream |
The null output stream. Used when logging is disabled. More... | |
class | dev::LogOverrideAux |
class | dev::LogOverride< Channel > |
struct | dev::VerbosityHolder |
Temporary changes system's verbosity for specific function. More... | |
class | dev::ThreadContext |
struct | dev::LogChannel |
The default logging channels. More... | |
struct | dev::LeftChannel |
struct | dev::RightChannel |
struct | dev::WarnChannel |
struct | dev::NoteChannel |
struct | dev::DebugChannel |
struct | dev::TraceChannel |
class | dev::LogOutputStreamBase |
class | dev::LogOutputStream< Id, _AutoSpacing > |
Logging class, iostream-like, that can be shifted to. More... | |
Namespaces | |
dev | |
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by René Nyffenegger. | |
Macros | |
#define | ETH_THREAD_CONTEXT(name) for (std::pair<dev::ThreadContext, bool> __eth_thread_context(name, true); p.second; p.second = false) |
#define | DEV_STATEMENT_IF(COND) for (bool i_eth_if_ = (COND); i_eth_if_; i_eth_if_ = false) |
A "hacky" way to execute the next statement on COND. More... | |
#define | DEV_STATEMENT_SKIP() while (/*CONSTCOND*/ false) /*NOTREACHED*/ |
A "hacky" way to skip the next statement. More... | |
#define | clog(X) dev::LogOutputStream<X, true>() |
#define | cslog(X) dev::LogOutputStream<X, false>() |
#define | cdebug clog(dev::DebugChannel) |
#define | cnote clog(dev::NoteChannel) |
#define | cwarn clog(dev::WarnChannel) |
#define | ctrace clog(dev::TraceChannel) |
#define | ndebug DEV_STATEMENT_SKIP() dev::NullOutputStream() |
#define | nlog(X) DEV_STATEMENT_SKIP() dev::NullOutputStream() |
#define | nslog(X) DEV_STATEMENT_SKIP() dev::NullOutputStream() |
Enumerations | |
enum | dev::LogTag { dev::LogTag::None, dev::LogTag::Url, dev::LogTag::Error, dev::LogTag::Special } |
Functions | |
void | dev::simpleDebugOut (std::string const &, char const *) |
A simple log-output function that prints log messages to stdout. More... | |
bool | dev::isChannelVisible (std::type_info const *_ch, bool _default) |
template<class Channel > | |
bool | dev::isChannelVisible () |
void | dev::setThreadName (std::string const &_n) |
Set the current thread's log name. More... | |
std::string | dev::getThreadName () |
Set the current thread's log name. More... | |
Variables | |
int | dev::g_logVerbosity = 5 |
The logging system's current verbosity. More... | |
std::function< void(std::string const &, char const *)> | dev::g_logPost = simpleDebugOut |
The current method that the logging system uses to output the log messages. Defaults to simpleDebugOut(). More... | |
#define cdebug clog(dev::DebugChannel) |
#define clog | ( | X | ) | dev::LogOutputStream<X, true>() |
#define cnote clog(dev::NoteChannel) |
#define cslog | ( | X | ) | dev::LogOutputStream<X, false>() |
#define ctrace clog(dev::TraceChannel) |
#define cwarn clog(dev::WarnChannel) |
#define DEV_STATEMENT_IF | ( | COND | ) | for (bool i_eth_if_ = (COND); i_eth_if_; i_eth_if_ = false) |
#define DEV_STATEMENT_SKIP | ( | ) | while (/*CONSTCOND*/ false) /*NOTREACHED*/ |
#define ETH_THREAD_CONTEXT | ( | name | ) | for (std::pair<dev::ThreadContext, bool> __eth_thread_context(name, true); p.second; p.second = false) |
#define ndebug DEV_STATEMENT_SKIP() dev::NullOutputStream() |
#define nlog | ( | X | ) | DEV_STATEMENT_SKIP() dev::NullOutputStream() |
#define nslog | ( | X | ) | DEV_STATEMENT_SKIP() dev::NullOutputStream() |