Efficient Logging for Blockchain Applications [article]

Christopher Klinkmüller, Ingo Weber, Alexander Ponomarev, An Binh Tran, Wil van der Aalst
2020 arXiv   pre-print
Second generation blockchain platforms, like Ethereum, can store arbitrary data and execute user-defined smart contracts. Due to the shared nature of blockchains, understanding the usage of blockchain-based applications and the underlying network is crucial. Although log analysis is a well-established means, data extraction from blockchain platforms can be highly inconvenient and slow, not least due to the absence of logging libraries. To close the gap, we here introduce the Ethereum Logging
more » ... mework (ELF) which is highly configurable and available as open source. ELF supports users (i) in generating cost-efficient logging code readily embeddable into smart contracts and (ii) in extracting log analysis data into common formats regardless of whether the code generation has been used during development. We provide an overview of and rationale for the framework's features, outline implementation details, and demonstrate ELF's versatility based on three case studies from the public Ethereum blockchain.
arXiv:2001.10281v1 fatcat:lyyo3mxw3rb3lastujwvvqsdai