Author: Walter Faxon
Date: 19:56:47 07/15/04
Go up one level in this thread
On July 15, 2004 at 18:47:06, Uri Blass wrote: >I find it not easy to find a problem based on a single logfile and I think to >add logfiles for specific information. > >Today I have a function PrintLog that print information only to the logfile >and Print that prints information both to the logfile and to the screen but it >may be better to have also functions like >PrintLogTime that print only information about decisions of the target time to >play a move and changes in that time to time.log or PrintLogPV that only prints >information about new pv that the program found. > >It is not instead of one file that everything is saved because the order of >events may be also important and if the program do not write all the information >also to a single file then there may be a problem to know the order of events >and I do not like to lose information because maybe the order of events may be >also important. > >What is your opinion? >Does your program have a single file that it save the logfile or many files. > >Uri Hi, Uri. My suggestion: use one logfile with every entry having a "key" that describes what is being logged, an index, and possibly the time. Your log viewer routine can select which key types you currently want to display. This also keeps more log ordering info when its too costly to obtain the exact time. Another reason for this is cache locality. Many log files == many cache entries == less room for the active cache lines of your chess program. My 2 cents. -- Walter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.