log.h 644 Bytes
Newer Older
Benoit Steiner's avatar
Benoit Steiner committed
1 2 3
/* VideoLAN VLANbridge : logging facilities
 *
 * Definition file
Benoit Steiner's avatar
Benoit Steiner committed
4
 *
Benoit Steiner's avatar
Benoit Steiner committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 * You must include <stdio.h> to use this module
*/

#ifndef _LOG_H
#define _LOG_H

/* Max buffer size */
#define LOG_BUFFSIZE	512

/* Log severity levels */
#define LOG_NOTE	0
#define LOG_WARN	1
#define LOG_ERROR	2

/* VLAnserver modules names */
#define MOD_VLANBRIDGE	0
#define MOD_MANAGER	1
#define MOD_LISTENER	2
#define MOD_SENDER	3
#define MOD_PERFORMER	4
25
#define MOD_ADMIN       5
Benoit Steiner's avatar
Benoit Steiner committed
26 27 28 29 30 31 32

int OpenLog (char* strLogFile);
void Log (int iLevel, int iModule, const char* strMsg, ...);
void LogScreen (int iLevel, int iModule, const char* strMsg, ...);
int CloseLog ();

#endif