|
|
@ -19,6 +19,8 @@ |
|
|
|
* @date 2015 |
|
|
|
* |
|
|
|
* A simple helper class for the structured logging |
|
|
|
* The spec for the implemented log events is here: |
|
|
|
* https://github.com/ethereum/system-testing/wiki/Log-Events
|
|
|
|
*/ |
|
|
|
|
|
|
|
#pragma once |
|
|
@ -40,7 +42,7 @@ public: |
|
|
|
|
|
|
|
void logStarting(std::string const& _clientImpl, const char* _ethVersion); |
|
|
|
void logP2PConnected(std::string const& _id, bi::tcp::endpoint const& _addr, |
|
|
|
std::chrono::system_clock::time_point const& _ts, unsigned int _numConnections) const; |
|
|
|
std::chrono::system_clock::time_point const& _ts, std::string const& _remoteVersion, unsigned int _numConnections) const; |
|
|
|
void logP2PDisconnected(std::string const& _id, bi::tcp::endpoint const& _addr, unsigned int _numConnections) const; |
|
|
|
void logMinedNewBlock(std::string const& _hash, std::string const& _blockNumber, |
|
|
|
std::string const& _chainHeadHash, std::string const& _prevHash) const; |
|
|
|