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, 2019 in Blockchain by slayer
• 29,350 points
9,225 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.

Hope it helps!

Join our Blockchain course today to learn more about it.

Thanks.

answered Jan 9, 2019 by Omkar
• 69,210 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 1,354 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 27, 2018 in Blockchain by Johnathon
• 9,090 points
1,642 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,400 points
3,042 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
1,662 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,215 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

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

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,181 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, 2019 in Blockchain by Omkar
• 69,210 points
1,295 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
• 69,210 points
2,944 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP