Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2005:
[Freeciv-Dev] Re: The freelog Method
Home

[Freeciv-Dev] Re: The freelog Method

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: YaChu Yang <yyan050@xxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: The freelog Method
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sun, 25 Sep 2005 14:37:48 +0100 (WET DST)

On Sun, 25 Sep 2005, YaChu Yang wrote:

> Hi,
>
> I'm apologize in advance for the following simple question, but I'm really a
> novice in C and I'm just slowly starting to get the hang of the freeciv code.
>
> But I've been wondering about the freelog method. There are quite a number of
> freelog methods in the code, and they all have different first parameters, I
> know that NORMAL_LOG will print things out to the console window, but I was
> wondering if you could tell me what exactly the other options are and what 
> they
> do?

From utility/log.h:

#define LOG_FATAL   0
#define LOG_ERROR   1           /* non-fatal errors */
#define LOG_NORMAL  2
#define LOG_VERBOSE 3           /* not shown by default */
#define LOG_DEBUG   4           /* suppressed unless DEBUG defined;
                                   may be enabled on file/line basis */

> I haven't been able to find any documentation on this. I was also wondering
> about log files, it seems that the game can generate these "log" files, but I
> could never find these, and was just wondering where these "log" files are.

You can show more log messages by changing the debug level (-d server
invocation command line option).

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






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