Logs

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Logs

Post by milipili » Sun Jul 13, 2008 7:31 pm

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 ?
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Jul 13, 2008 8:24 pm

truncating at startup is the best behavior I think.
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Sun Jul 13, 2008 8:39 pm

I don't think. I like to see previous logs, like for any application that provides logs
Damien Gerard
Ta3d & Yuni Developer

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Logs

Post by Doors » Mon Jul 14, 2008 3:52 am

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.
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

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Mon Jul 14, 2008 8:39 am

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

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Mon Jul 14, 2008 9:10 am

From r849, the log file is truncated at startup
Damien Gerard
Ta3d & Yuni Developer

Doors
Posts: 114
Joined: Wed Jan 09, 2008 7:53 pm
Contact:

Logs

Post by Doors » Mon Jul 14, 2008 3:37 pm

Thanks.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests