22#define LOGLEVEL_TECH LOG_DEBUG
36#define TECH_LOG(ait, loglevel, pplayer, padvance, msg, ...) \
38 bool send_notify = BV_ISSET(pplayer->server.debug, PLAYER_DEBUG_TECH); \
39 enum log_level level = (send_notify ? LOG_AI_TEST \
40 : MIN(loglevel, LOGLEVEL_TECH)); \
41 if (log_do_output_for_level(level)) { \
42 real_tech_log(ait, __FILE__, __FUNCTION__, __FC_LINE__, level, \
43 send_notify, pplayer, padvance, msg, ## __VA_ARGS__); \
50 const struct player *pplayer,
53#define DIPLO_LOG(ait, loglevel, pplayer, aplayer, msg, ...) \
55 bool send_notify = BV_ISSET(pplayer->server.debug, PLAYER_DEBUG_DIPLOMACY); \
56 enum log_level level = (send_notify ? LOG_AI_TEST \
57 : MIN(loglevel, LOGLEVEL_PLAYER)); \
58 if (log_do_output_for_level(level)) { \
59 real_diplo_log(ait, __FILE__, __FUNCTION__, __FC_LINE__, level, \
60 send_notify, pplayer, aplayer, msg, ## __VA_ARGS__); \
67 const struct unit *
punit,
const char *msg, ...)
69#define BODYGUARD_LOG(ait, loglevel, punit, msg, ...) \
71 bool send_notify = punit->server.debug; \
72 enum log_level level = (send_notify ? LOG_AI_TEST \
73 : MIN(loglevel, LOGLEVEL_BODYGUARD)); \
74 if (log_do_output_for_level(level)) { \
75 real_bodyguard_log(ait, __FILE__, __FUNCTION__, __FC_LINE__, level, \
77 msg, ## __VA_ARGS__); \
void real_diplo_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct player *pplayer, const struct player *aplayer, const char *msg,...) fc__attribute((__format__(__printf__
void real_tech_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct player *pplayer, struct advance *padvance, const char *msg,...) fc__attribute((__format__(__printf__
void dai_unit_log(struct ai_type *ait, char *buffer, int buflength, const struct unit *punit)
void real_bodyguard_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct unit *punit, const char *msg,...) fc__attribute((__format__(__printf__
void dai_city_log(struct ai_type *ait, char *buffer, int buflength, const struct city *pcity)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
struct setting_list * level[OLEVELS_NUM]