8#ifndef __BRIDGE_ILOGGER_H__
9#define __BRIDGE_ILOGGER_H__
38 void (*LogTrace)(
const char* message,
void* data);
44 void (*LogInfo)(
const char* message,
void* data);
50 void (*LogError)(
const char* message,
void* data);
LoggerTypes
A value passed to CreateLogger() to specify the type of logger to create.
@ LoggerType_ToFile
Log to a file. One additional parameter: the name of the file to log to.
@ LoggerType_ToNull
Log to nowhere, that is, throw out all logging. No additional parameters.
@ LoggerType_ToConsole
Log to the console. No additional parameters.
ILogger * CreateLogger(LoggerTypes loggerType, const char *filename)
Return an interface for the specified logger.
void DestroyLogger(ILogger *logger)
Release any resources associated with the given logger. The given ILogger instance is no longer valid...
void * data
Data associated with a specific instance of a logger.
LoggerTypes loggerType
The type of this logger, as identified by a value from the LoggerTypes enumeration.