eyBuildLib API Reference : eyBuildLib

eblog

NAME

eblog - log module

ROUTINES

ebMakeMsg( ) - store the format string to task templete buffer.
ebLogMsg( ) - dispaly log message to stderr
ebLogMsg2( ) - dispaly log message to stderr

DESCRIPTION

log module

SEE ALSO

eberor.h, ebcblock.h


eyBuildLib : Routines

ebMakeMsg( )

NAME

ebMakeMsg( ) - store the format string to task templete buffer.

SYNOPSIS

char * ebMakeMsg
    (
    const char * fmt,
                 ...
    )

DESCRIPTION

this routine store the format string to task templete buffer.

ALSO SEE

getEbCBlock( )

RETURNS

OK/ERROR

SEE ALSO

eblog


eyBuildLib : Routines

ebLogMsg( )

NAME

ebLogMsg( ) - dispaly log message to stderr

SYNOPSIS

int ebLogMsg
    (
    int    type,              /* log type */
    char * msg                /* message */
    )

DESCRIPTION

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");

ALSO SEE

ebLogMsg2( ), ebMakeMsg( ).

RETURNS

OK/ERROR

SEE ALSO

eblog


eyBuildLib : Routines

ebLogMsg2( )

NAME

ebLogMsg2( ) - dispaly log message to stderr

SYNOPSIS

int ebLogMsg2
    (
    const char * file,        /* file name */
    int          line,        /* line number */
    int          type,        /* log type */
    const char * msg          /* message */
    )

DESCRIPTION

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.

ALSO SEE

ebLogMsg( ), ebMakeMsg( ).

RETURNS

OK/ERROR

SEE ALSO

eblog