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

[freeciv-ai] Re: rfc: logging

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Cc: Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>, <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: rfc: logging
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 21:27:16 +0000 (GMT)

On Tue, 13 Aug 2002, Mike Kaufman wrote:
> >   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 numbershere)
> I forget the specific syntax

For the AI, this produces way too much logging info, especially for heavy
files like aiunit.c

I would rather do like Raimar has started doing, define different
loglevels for various pieces of the code, so that you can, say, turn all
bodyguard-related info into LOG_NORMAL. Personally I always edit the
loglevels of the freelogs I want to watch and almost never use verbose or
debug mode - the important info always gets lost to me in the flurry of
messages, last time I did that I had to pipe three grep to the output to
make any sense of it.


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