Bitcoin Forum
May 29, 2017, 11:04:38 PM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Question regarding logging  (Read 599 times)
delson
Newbie
*
Offline Offline

Activity: 20


View Profile
October 02, 2011, 01:22:33 AM
 #1

I have a couple questions about logging. I would like to log every time a transaction takes place, or a new block is downloaded from nodes. These logs would have to also include a timestamp. I was looking through an old debug.log, and found that none of the events were timestamped. Is there a setting that allows for these customizations, or will I have to do it manually in the code?

In addition, how difficult will it be to modify for this kind of a change.

Thank you.
1496099078
Hero Member
*
Offline Offline

Posts: 1496099078

View Profile Personal Message (Offline)

Ignore
1496099078
Reply with quote  #2

1496099078
Report to moderator
1496099078
Hero Member
*
Offline Offline

Posts: 1496099078

View Profile Personal Message (Offline)

Ignore
1496099078
Reply with quote  #2

1496099078
Report to moderator
POLONIEX TRADING SIGNALS
+50% Profit and more via TELEGRAM
ALTCOINTRADER.CO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1496099078
Hero Member
*
Offline Offline

Posts: 1496099078

View Profile Personal Message (Offline)

Ignore
1496099078
Reply with quote  #2

1496099078
Report to moderator
1496099078
Hero Member
*
Offline Offline

Posts: 1496099078

View Profile Personal Message (Offline)

Ignore
1496099078
Reply with quote  #2

1496099078
Report to moderator
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
October 02, 2011, 03:16:28 PM
 #2

-logtimestamps  command-line param or logtimestamps=1 in the bitcoin.conf file.
(I dont' remember when that option was added, a 'git blame util.cpp' will tell you, look for fLogTimestamps)

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!