36
const char *fileName; // File name, if known
37
const char *config; // Config variable to look up
38
const char *suffix; // Suffix to generate log file name
39
const char *appName; // App name for log header
40
const char *appVersion; // App version for log header
41
Bool logging; // Logging is enabled or not
42
Bool append; // Append to log file
43
unsigned int keepOld; // Number of old logs to keep
44
unsigned int throttleThreshold; // Threshold for throttling
45
unsigned int throttleBytesPerSec; // BPS for throttle
46
Bool switchFile; // Switch the initial log file
47
unsigned int rotateSize; // Size at which log should be rotated
50
EXTERN void Log_GetInitDefaults(const char *fileName, const char *config,
51
const char *suffix, LogInitParams *params);
34
53
EXTERN Bool Log_Init(const char *fileName, const char *config, const char *suffix);
35
54
EXTERN Bool Log_InitForApp(const char *fileName, const char *config,
36
55
const char *suffix, const char *appName,
37
56
const char *appVersion);
38
EXTERN Bool Log_InitEx(const char *fileName, const char *config, const char *suffix,
39
const char *appName, const char *appVersion,
40
Bool logging, Bool append,
41
unsigned int keepOld, unsigned int throttleThreshold,
42
unsigned int throttleBytesPerSec, Bool switchFile,
43
unsigned int rotateSize);
57
EXTERN Bool Log_InitEx(const LogInitParams *params);
44
58
EXTERN void Log_Exit(void);
45
59
EXTERN void Log_SetConfigDir(const char *configDir);
46
60
EXTERN void Log_SetLockFunc(void (*f)(Bool locking));
111
125
EXTERN void Log_Histogram(uint32 n, uint32 histo[], int nbuckets,
112
126
const char *message, int *count, int limit);
128
#endif /* VMWARE_LOG_H */