[freeciv-ai] Re: rfc: logging
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
Yours
Per
|
|