eyBuildLib API Reference : eyBuildLib
eblog - log module
ebMakeMsg( ) - store the format string to task templete buffer.
ebLogMsg( ) - dispaly log message to stderr
ebLogMsg2( ) - dispaly log message to stderr
log module
eberor.h, ebcblock.h
ebMakeMsg( ) - store the format string to task templete buffer.
char * ebMakeMsg ( const char * fmt, ... )
this routine store the format string to task templete buffer.
getEbCBlock( )
OK/ERROR
ebLogMsg( ) - dispaly log message to stderr
int ebLogMsg ( int type, /* log type */ char * msg /* message */ )
this routine dispaly log message to stderr, include filename and line number(if HAVE_LOG_SHORT macro not defined). Usually, call ebMakeMsg( ) to format output string.
This routine is a macro define, you can define HAVE_LOG_SHORT to cance display filename and line number in release version.
There are for type 4 level type for log message:
#define EBLOG_NOTICE 0x0000 /@ notice @/
#define EBLOG_WARNING 0x0010 /@ warning @/
#define EBLOG_USRBASE 0x0100 /@ user log rang @/
#define EBLOG_ERROR 0x1000 /@ error @/
ebLogMsg(EBLOG_WARNING + 2, "Warning level 2");
OK/ERROR
ebLogMsg2( ) - dispaly log message to stderr
int ebLogMsg2 ( const char * file, /* file name */ int line, /* line number */ int type, /* log type */ const char * msg /* message */ )
this routine dispaly log message to stderr, include filename and line number(if HAVE_LOG_SHORT macro not defined). Usually, call ebMakeMsg( ) to format output string.
OK/ERROR