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 » Wed Jun 11, 2008 2:35 pm

Could I implement a new logging facility (mainly with vebose level and colors under Unixes) ?

I have to trace allegro/ta3d calls to make it working under Darwin and the current one is nearly useless.
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 » Wed Jun 11, 2008 8:01 pm

How do you want to implement it ?
=>;-D Penguin Powered

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

Post by milipili » Wed Jun 11, 2008 8:11 pm

Actually I though to re-use an existing and working one :
http://svn.shikami.org/logs/
with some modifications to replace pthread's function.

If additional features are required, it is quite easy to extend this code.
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 » Wed Jun 11, 2008 8:21 pm

Ok, good idea, but try to improve/merge/rewrite existing systems, I don't want to have 3 different logging systems ... maybe you can use one module for low level functions (writing the log file, printing to the standard output, ...) and an other module to deal with text formating, drawing, ... (more or less what the Console module does)
=>;-D Penguin Powered

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

Post by milipili » Thu Jun 12, 2008 8:04 am

This unit was designed for only low level functions (write logs into a file and display it to std::cout/cerr) and I think it should stay like this.

I will start a new branch from now on.
Damien Gerard
Ta3d & Yuni Developer

Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests