question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not all information printed at standard output ends up in log file

See original GitHub issue

I noticed that some of the information printed by Corda at standard output are not visible in log file. Not sure what’s exactly the difference, but today I noticed that the line informing about loaded plugins/CorDapps are not in logs. Please find this example: Loaded plugins : com.example.plugin.ExamplePlugin, net.corda.cordappb.plugin.CordappBPlugin, net.corda.cordappd.plugin.CordappDPlugin, net.corda.cordappc.plugin.CordappCPlugin is not visible in logs.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mikehearncommented, Mar 15, 2017

Whilst we’re at it, can we print the node’s legal name to the screen and log file as well?

https://discourse.corda.net/t/cant-connect-to-bob-cuz-hes-living-somewhere-else/920

1reaction
wawrzekcommented, Mar 13, 2017

Example of initial information not in log. Of course we don’t need Corda ASCII art in logs 😉. But information lines about Loaded plugins, Database connection and Node listening address, network services are very useful.

Mar 13 12:13:47 pentagon-r3 java[39352]:    ______               __
Mar 13 12:13:47 pentagon-r3 java[39352]:   / ____/     _________/ /___ _
Mar 13 12:13:47 pentagon-r3 java[39352]:  / /     __  / ___/ __  / __ `/         It's not who you know, it's who you know
Mar 13 12:13:47 pentagon-r3 java[39352]: / /___  /_/ / /  / /_/ / /_/ /          knows what you know you know.
Mar 13 12:13:47 pentagon-r3 java[39352]: \____/     /_/   \__,_/\__,_/
Mar 13 12:13:47 pentagon-r3 java[39352]: --- MILESTONE 9 -------------------------------------------------------------------
Mar 13 12:13:47 pentagon-r3 java[39352]: 📚  New! Training now available worldwide, see https://corda.net/corda-training/
Mar 13 12:13:49 pentagon-r3 java[39352]: Logs can be found in                    : /opt/corda/logs
Mar 13 12:13:53 pentagon-r3 java[39352]: Database connection url is              : jdbc:h2:tcp://10.10.10.8:11000/node
Mar 13 12:14:00 pentagon-r3 java[39352]: Node listening on address               : pentagon-r3.corda.r3cev.com:10002
Mar 13 12:14:02 pentagon-r3 java[39352]: Providing network services              :
Mar 13 12:14:02 pentagon-r3 java[39352]: Loaded plugins                          : com.example.plugin.ExamplePlugin
Mar 13 12:14:09 pentagon-r3 java[39352]: Node started up and registered in 23.77 sec
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does this 'at' command not print to the standard output?
I created the /var/log/maint directory and made it readable by everybody and I have a readable file under that called "backup" where I...
Read more >
Printing the console to a log file is not reversible in Spyder for ...
I suspect the problem is that IPython does something with stdout, so that just setting it to sys.__stdout__ after you're done redirecting it ......
Read more >
Python StdOuts: Don't Print, Log! | by Sruthi Korlakunta
Often on Python, especially as a beginner, you might print( ) a variable in order to see what is happening in your program....
Read more >
10.2. Standard input, output, and error
Example 10.9. Redirecting output ; 3, Open a file for writing. If the file doesn't exist, it will be created. If the file...
Read more >
Logging - Gradle User Manual
Running Gradle with the DEBUG log level can expose security sensitive information to the console and build log. This information can include but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found