How to check ethereum logs?

0 votes
I have created a private ethereum network and when I run a command or a transaction I only see the result or output there but, I want to see what happens in the background. Is there like a Verbose option or a log where I can see all the things happening in the background?
Jan 9 in Blockchain by slayer
• 29,050 points
240 views

1 answer to this question.

0 votes

Hey there! You don't have a Verbose option but you can see what's happening in the background by reading the logs. To do this, you have to set the log file to store the data and then read it. Follow this steps:

Initialize the data directory and start the peer node:

geth --datadir ./myDataDir init ./myGenesis.json
geth --datadir ./myDataDir --networkid 1114 console 2>> myEth.log

Note that while starting the peer node, we are sending the logs to the myEth.log file.

Now, to read the log, open a new terminal, switch to the directory where  myEth.log   file is stored and run the following command:

tail -f myEth.log

This will display the logs. Whenever you run a geth command or make a transaction, this window will dynamically get update.

answered Jan 9 by Omkar
• 67,140 points

Related Questions In Blockchain

0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 72 views
+1 vote
1 answer

How to deploy ethereum smart contracts on a website?

There are many ways to do this: 1 ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,070 points
66 views
+1 vote
3 answers

How efficient is Ethereum in regard to its TPS??

TPS means transactions processing at any given ...READ MORE

answered Apr 16, 2018 in Blockchain by Shashank
• 10,330 points
1,212 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
105 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 238 views
0 votes
1 answer

How to check peer connectivity in ethereum private network?

You can use the net module to check the ...READ MORE

answered Jan 10 in Blockchain by Omkar
• 67,140 points
17 views
0 votes
2 answers

How to check if bitcoin address is valid?

For Java, have a look at the ...READ MORE

answered Aug 20, 2018 in Blockchain by Omkar
• 67,140 points
207 views