Open source remastering of the Freespace 2 engine
generic_log.cpp File Reference
#include <stdarg.h>
#include "cfile/cfile.h"
#include "globalincs/globals.h"
#include "parse/generic_log.h"
#include "parse/parselo.h"

Go to the source code of this file.


struct  logfile


#define MAX_LOGFILE_LINE_LEN   256
#define MAX_LOGFILES   2


typedef struct logfile logfile


bool logfile_init (int logfile_type)
void logfile_close (int logfile_type)
void log_printf (int logfile_type, char *format,...)
void log_string (int logfile_type, const char *string, int add_time)


logfile logfiles [MAX_LOGFILES]

Macro Definition Documentation

#define MAX_LOGFILE_LINE_LEN   256

Definition at line 26 of file generic_log.cpp.

#define MAX_LOGFILES   2

Definition at line 35 of file generic_log.cpp.


Definition at line 29 of file generic_log.cpp.

Typedef Documentation

typedef struct logfile logfile

Function Documentation

void log_printf ( int  logfile_type,
char *  format,

Definition at line 83 of file generic_log.cpp.

void log_string ( int  logfile_type,
const char *  string,
int  add_time 

Definition at line 107 of file generic_log.cpp.

void logfile_close ( int  logfile_type)

Definition at line 72 of file generic_log.cpp.

bool logfile_init ( int  logfile_type)

Definition at line 53 of file generic_log.cpp.

Variable Documentation

logfile logfiles[MAX_LOGFILES]
Initial value:
= {
{"multi.log" ,NULL},
{"event.log" ,NULL},

Definition at line 42 of file generic_log.cpp.