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: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>, Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>, freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: rfc: logging
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Wed, 14 Aug 2002 11:59:02 +0200

On Tue, Aug 13, 2002 at 09:27:16PM +0000, Per I. Mathisen wrote:
> 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

Looks like you don't use it much ;)

> 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

Same here. It takes less time to do a recompile that to fiddle with -d


 email: rf13@xxxxxxxxxxxxxxxxx
 "That's fundamental game play!  My main enemy is *ALWAYS* fighting 
  a 4-front war.  I make sure of it!"
    -- Tony Stuckey, freeciv-dev

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