Logs
warning
This article is outdated and requires a revision.
Log config file location
Logging in Nethermind is done via NLog library that can be configured by editing the NLog.config file.
Environment Type | NLog.config location |
---|---|
built from src - Debug mode | src\Nethermind\Nethermind.Runner\bin\Debug\netcoreapp3.1\NLog.config |
built from src - Release mode | src\Nethermind\Nethermind.Runner\bin\Release\netcoreapp3.1\NLog.config |
PPA | /usr/share/nethermind/NLog.config |
Docker | /nethermind/NLog.config |
from downloads page | top level directory after unzipping the package |
from GitHub releases page | top level directory after unzipping the package |
dAppNode | ? [to be documented] |
Log config file syntax
Detailed NLog configuration options can be found here: https://nlog-project.org/config/
Config or CLI log rules
Simple logging rules can be added through configuration file or command line argument.
For example this would add Trace
level logs to any logger under Synchronization
module and Debug
level logs
for BlockTree
from Blockchain
module:
--Init.LogRules Synchronization.*:Trace;Blockchain.BlockTree:Debug