Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] Re: rfc: logging
Home

[freeciv-ai] Re: rfc: logging

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: rfc: logging
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Aug 2002 15:30:13 -0500

On Tue, Aug 13, 2002 at 08:59:41PM +0200, Jordi Negrevernis i Font wrote:
> 
> 
> Per I. Mathisen wrote:
> 
> >In the attached patch I have macros that wrap freelog for more uniform and
> >informative log messages from the AI code. I want some feedback on it. It
> >is not optimal, since you can't add more varargs to it (tried some other
> >variants but none worked well). It should have option to specify your own
> >loglevel but that's secondary.
> >
> >Please suggest something better. We need something like this to get decent
> >logging of the AI and find bugs.
> >
>     It would be nice to have the logging system only do logs for a 
> specified module or function.

you can. compile with debugging and then use 
-d 4 (files, line numbers here)

I forget the specific syntax

-mike


[Prev in Thread] Current Thread [Next in Thread]