sprint 1-alpha
Defines | Functions | Variables
sprint/log.h File Reference

implements some logging interface the log API permits to log the data on different subsystem (text, stdio, html file) depending on which log library are linked with the application. More...

Go to the source code of this file.

Defines

#define LOG_LEVEL_CUSTOM   ('$')
#define LOG_LEVEL_INFO   (':')
#define LOG_LEVEL_COMMENT   ('#')
#define LOG_LEVEL_DESC   ('.')
#define LOG_LEVEL_WARNING   ('W')
#define LOG_LEVEL_ERROR   ('E')
#define LOG_LEVEL_SYSTEM   ('!')
#define LOG_LEVEL_TIME   ('@')
#define ANCHOR(name)   logPuts(LOG_LEVEL_INFO, #name);

Functions

int logBegin (const char *logfile, const char *log_proc_name, int append)
 Using -DDISABLE_LOG no log file are used.
void logDone ()
void logPuts (char uLevel, const char *string)
 puts a string
void logPutsf (char uLevel, const char *format,...)
 puts a string with variable arguments
void logPuttime ()
 puts current time
void logPrintSocketError (const char *lpszModuleName)
 puts socket error code
void logPutRaw (const void *data, unsigned long data_len)
 puts raw data
void logHexDump (const void *data, unsigned long data_len, int flag)
 convert raw data in hex display
int LogParseErrorEx (const char *lpszArg, unsigned int dwParm)
 use Win32 parser for current error

Variables

bool log_send_to_console
 extra flag
int log_verbose
 verbosity level

Detailed Description

implements some logging interface the log API permits to log the data on different subsystem (text, stdio, html file) depending on which log library are linked with the application.


Function Documentation

int logBegin ( const char *  logfile,
const char *  log_proc_name,
int  append 
)

Using -DDISABLE_LOG no log file are used.

Begin LOG

Parameters:
logfilefile name
log_proc_namea title
appendappend to previous log file
void logDone ( )

close log file

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines