| View previous topic :: View next topic |
| Author |
Message |
Daniel Shawul
Joined: 14 Mar 2006 Posts: 2187 Location: Ethiopia
|
Post subject: Re: A logging facility Posted: Wed Mar 21, 2012 9:00 am |
|
|
Agreed. Some more reasons why you may want to have a custom printf :
-different outputs to gui and log file. Some protocols will not work if you print everything to the gui (winboard needs # for comments f.i, others may simply break down)
-stylized printing with headers [processor 0] or [time 3434] , coloring as you mentioned, or simply skipping some prints for a better formatted output etc..
-printing to a socket to another process or a remote machine following a certain protocol as in the case of ICS etc..
-thread safe printing
This can all be wrapped in a cutstom stream class that can be passed around if that simplifies the design of the program. I have even seen information exchange between processors to do parallel processing through an overloaded ">>" operator. Took me some time to figure that out... For chess, it is probably wise to think about this carefully if you are designing a GUI IMO. _________________ https://sites.google.com/site/dshawul/
https://github.com/dshawul |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
A logging facility |
Marco Costalba |
Sun Mar 18, 2012 10:23 pm |
Re: A logging facility |
Gary |
Sun Mar 18, 2012 11:56 pm |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 3:50 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 7:18 am |
Re: A logging facility |
Vincent Diepeveen |
Mon Mar 19, 2012 7:37 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 7:50 am |
Re: A logging facility |
Vincent Diepeveen |
Mon Mar 19, 2012 8:22 am |
Re: A logging facility |
Jan Brouwer |
Mon Mar 19, 2012 6:43 pm |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 6:54 pm |
Re: A logging facility |
Jan Brouwer |
Mon Mar 19, 2012 8:00 pm |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 9:09 pm |
Re: A logging facility |
Daniel Shawul |
Mon Mar 19, 2012 9:37 pm |
Re: A logging facility |
Marco Costalba |
Tue Mar 20, 2012 8:30 pm |
Re: A logging facility |
Ben-Hur Carlos Langoni |
Wed Mar 21, 2012 2:16 am |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 9:20 am |
Re: A logging facility |
Ben-Hur Carlos Langoni |
Wed Mar 21, 2012 1:54 pm |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 3:38 pm |
Re: A logging facility |
Marco Costalba |
Thu Mar 22, 2012 8:01 pm |
Re: A logging facility |
Daniel Shawul |
Thu Mar 22, 2012 10:48 pm |
Re: A logging facility |
Rein Halbersma |
Fri Mar 23, 2012 7:03 am |
Re: A logging facility |
Daniel Shawul |
Fri Mar 23, 2012 10:04 am |
Re: A logging facility |
Rein Halbersma |
Fri Mar 23, 2012 12:32 pm |
Re: A logging facility |
Martin Sedlak |
Fri Mar 23, 2012 1:00 pm |
Re: A logging facility |
Daniel Shawul |
Fri Mar 23, 2012 2:05 pm |
Re: A logging facility |
Robert Hyatt |
Wed Mar 21, 2012 4:36 pm |
Re: A logging facility |
Mark Pearce |
Wed Mar 28, 2012 12:49 pm |
Re: A logging facility |
Rein Halbersma |
Mon Mar 19, 2012 7:50 am |
Re: A logging facility |
Marco Costalba |
Mon Mar 19, 2012 8:00 am |
Re: A logging facility |
Rein Halbersma |
Mon Mar 19, 2012 8:09 am |
Re: A logging facility |
Robert Hyatt |
Mon Mar 19, 2012 6:56 pm |
Re: A logging facility |
Daniel Shawul |
Mon Mar 19, 2012 7:52 pm |
Re: A logging facility |
Robert Hyatt |
Wed Mar 21, 2012 1:26 am |
Re: A logging facility |
Daniel Shawul |
Wed Mar 21, 2012 9:00 am |
Re: A logging facility |
H.G.Muller |
Wed Mar 21, 2012 7:58 am |
Re: A logging facility |
Vincent Diepeveen |
Wed Mar 21, 2012 2:39 pm |
Re: A logging facility |
H.G.Muller |
Wed Mar 21, 2012 5:29 pm |
Re: A logging facility |
H.G.Muller |
Thu Mar 22, 2012 8:11 am |
Re: A logging facility |
Daniel Shawul |
Thu Mar 22, 2012 11:18 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|