Add audit log file

This commit is contained in:
instagibbs 2016-04-22 15:10:50 -07:00 committed by Gregory Sanders
parent 5412a584f4
commit fdcb038e77
4 changed files with 120 additions and 27 deletions

View file

@ -1063,6 +1063,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (fPrintToDebugLog)
OpenDebugLog();
if (fPrintToAuditLog)
OpenAuditLog();
if (!fLogTimestamps)
LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()));
LogPrintf("Default data directory %s\n", GetDefaultDataDir().string());