With the r838, the new implementation for the logger is able to redirect the output to a file (as it were for the previous releases of TA3D via the class cConsole).
However there is a little problem. The file may be never truncated.
A simple behavior (I doubt TA3D needs a log rotate...) would be to truncate the file at the startup is its size is > 5Mo for example.
Any idea ?
Logs
Logs
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Logs
If you are going to keep logs then please make sure there is a nice easy to recognize header to indicate where one run stops and the next begins.
This lack has left me spending countless hours of debugging when I have had to clean up after some MCSE I dee ten tee or even worse who thinks a degree means his/her %#@@% don't stink while telling the customer that logs are not needed now that they have this great debugging interface. Works awsome until the debugger crashes because some twirp in ring0 forgets to sanity check a pointer for the heap and writes somewhere interesting.
Nothing against MCSE it's just that my experience with them has been less than stellar and their idea of interoperability is mostly working on more than one version of windows.
edited for spelling cause I often caint.
This lack has left me spending countless hours of debugging when I have had to clean up after some MCSE I dee ten tee or even worse who thinks a degree means his/her %#@@% don't stink while telling the customer that logs are not needed now that they have this great debugging interface. Works awsome until the debugger crashes because some twirp in ring0 forgets to sanity check a pointer for the heap and writes somewhere interesting.
Nothing against MCSE it's just that my experience with them has been less than stellar and their idea of interoperability is mostly working on more than one version of windows.
edited for spelling cause I often caint.
Last edited by Doors on Mon Jul 14, 2008 3:36 pm, edited 1 time in total.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org
Here is a sample :
Code: Select all
[Mon Jul 14 10:33:15 2008] [infos] *** Welcome to TA3D ***
[Mon Jul 14 10:33:15 2008] [infos] Started from: `/Users/milipili/Projects/TA3D/trunk/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Preferences: `/Users/milipili/Library/Preferences/ta3d/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Cache: `/Users/milipili/Library/Caches/ta3d/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Savegames: `/Users/milipili/Library/Preferences/ta3d/savegames/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Screenshots: `/Users/milipili/Downloads/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Logs: `/Users/milipili/Library/Logs/ta3d/`
[Mon Jul 14 10:33:15 2008] [infos] Log: `/Users/milipili/Library/Logs/ta3d/ta3d.log
[Mon Jul 14 10:33:15 2008] [infos] Folder: Resources: `/Users/milipili/Library/Application Support/ta3d/`
[Mon Jul 14 10:33:15 2008] [infos] Folder: Resources: `/Users/milipili/Projects/TA3D/trunk/resources/`
[Mon Jul 14 10:33:15 2008] [infos] [system] Vendor: i486 Itanium (cpuid, x87 FPU)
[Mon Jul 14 10:33:15 2008] [infos] [system] MacOSX (10.5)
[Mon Jul 14 10:33:15 2008] [infos] [system] Desktop: 1680x1050 (32bits)
[Mon Jul 14 10:33:15 2008] [infos] [system] Allegro version: 4.2.2 (2007)
[Mon Jul 14 10:33:15 2008] [infos] [system] AllegroGL version: 0.4.3
[Mon Jul 14 10:33:15 2008] [infos] [i18n] Switching to `Français` (french)
...
[Mon Jul 14 10:33:17 2008] [debug] 0x112c6d80
[Mon Jul 14 10:33:17 2008] [debug] [Main Menu] Done.
[Mon Jul 14 10:33:17 2008] [infos] Making a backup for `/Users/milipili/Library/Preferences/ta3d/ta3d.cfg`...
[Mon Jul 14 10:33:17 2008] [infos] The backup is done.
[Mon Jul 14 10:33:17 2008] [infos] Saving settings in `/Users/milipili/Library/Preferences/ta3d/ta3d.cfg`...
[Mon Jul 14 10:33:17 2008] [infos] Settings has been saved.
[Mon Jul 14 10:33:17 2008] [infos] Aborting now. Releasing all resources...
[Mon Jul 14 10:33:17 2008] [debug] [i18n] Release.
[Mon Jul 14 10:33:17 2008] [infos] Exit.
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Logs
Thanks.
That'll make things easier.
Save a lot of hours for everyone.
That'll make things easier.
Save a lot of hours for everyone.
Don't just look at the future through a window.
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org
Open a door and go there.
http://ta3d.freedoors.org
http://www.freedoors.org
http://baencd.freedoors.org
Who is online
Users browsing this forum: No registered users and 33 guests