Browse Source

Structured Logger output is now one-liner

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
9ed338e2ca
  1. 3
      libdevcore/StructuredLogger.cpp

3
libdevcore/StructuredLogger.cpp

@ -38,9 +38,10 @@ void StructuredLogger::outputJson(Json::Value const& _value, std::string const&
{
Json::Value event;
static Mutex s_lock;
Json::FastWriter fastWriter;
Guard l(s_lock);
event[_name] = _value;
cout << event << endl << flush;
cout << fastWriter.write(event) << endl;
}
void StructuredLogger::starting(string const& _clientImpl, const char* _ethVersion)

Loading…
Cancel
Save