C library for SOAP (Simple Object Access Protocol)


Logging interface
[cSOAP]


Modules

 Commandline flags

Defines

#define SOAP_LOG_LEVEL_OFF_STRING   "OFF"
#define SOAP_LOG_LEVEL_VERBOSE_STRING   "VERBOSE"
#define SOAP_LOG_LEVEL_DEBUG_STRING   "DEBUG"
#define SOAP_LOG_LEVEL_INFO_STRING   "INFO"
#define SOAP_LOG_LEVEL_WARN_STRING   "WARN"
#define SOAP_LOG_LEVEL_ERROR_STRING   "ERROR"
#define SOAP_LOG_LEVEL_FATAL_STRING   "FATAL"
#define SOAP_LOG_LEVEL_UNKNOWN_STRING   "UNKNWON"
#define SOAP_LOG_DISABLED   0x00
#define SOAP_LOG_FOREGROUND   0x01
#define SOAP_LOG_SYSLOG   0x02
#define log_verbose(fmt,...)
#define log_debug(fmt,...)
#define log_info(fmt,...)
#define log_warn(fmt,...)
#define log_error(fmt,...)
#define log_fatal(fmt,...)

Typedefs

typedef enum soap_loglevel soap_loglevel_t

Enumerations

enum  soap_loglevel {
  SOAP_LOG_OFF, SOAP_LOG_VERBOSE, SOAP_LOG_DEBUG, SOAP_LOG_INFO,
  SOAP_LOG_WARN, SOAP_LOG_ERROR, SOAP_LOG_FATAL
}

Functions

soap_loglevel_t soap_set_loglevel (soap_loglevel_t loglevel)
soap_loglevel_t soap_get_loglevel (void)
void soap_set_logfile (const char *filename)
char * soap_get_logfile (void)
int soap_log_set_logtype (int type)

Define Documentation

#define log_debug ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_DEBUG, \
                              SOAP_LOG_LEVEL_DEBUG_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define log_error ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_ERROR, \
                              SOAP_LOG_LEVEL_ERROR_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define log_fatal ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_FATAL, \
                              SOAP_LOG_LEVEL_FATAL_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define log_info ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_INFO, \
                              SOAP_LOG_LEVEL_INFO_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define log_verbose ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_VERBOSE, \
                              SOAP_LOG_LEVEL_VERBOSE_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define log_warn ( fmt,
...   ) 

Value:

_nanohttp_log_printf(SOAP_LOG_WARN, \
                              SOAP_LOG_LEVEL_WARN_STRING " %s: " fmt "\n", \
                              __FUNCTION__, ## __VA_ARGS__)

#define SOAP_LOG_DISABLED   0x00

Logging disabled

#define SOAP_LOG_FOREGROUND   0x01

Logging to stdout enabled

#define SOAP_LOG_LEVEL_DEBUG_STRING   "DEBUG"

#define SOAP_LOG_LEVEL_ERROR_STRING   "ERROR"

#define SOAP_LOG_LEVEL_FATAL_STRING   "FATAL"

#define SOAP_LOG_LEVEL_INFO_STRING   "INFO"

#define SOAP_LOG_LEVEL_OFF_STRING   "OFF"

#define SOAP_LOG_LEVEL_UNKNOWN_STRING   "UNKNWON"

#define SOAP_LOG_LEVEL_VERBOSE_STRING   "VERBOSE"

#define SOAP_LOG_LEVEL_WARN_STRING   "WARN"

#define SOAP_LOG_SYSLOG   0x02

Syslog logging enabled


Typedef Documentation

Loglevel definition


Enumeration Type Documentation

Loglevel definition

Enumerator:
SOAP_LOG_OFF  Logging completely turned off (use at your own risk).
SOAP_LOG_VERBOSE  Debugging messages thath may overlfow the log
SOAP_LOG_DEBUG  Messages that contain information normallu of use only when debugging the library.
SOAP_LOG_INFO  Infmormational messages
SOAP_LOG_WARN  Warning messages.
SOAP_LOG_ERROR  A condition that should be corrected immediately, such as a broken network connection.
SOAP_LOG_FATAL  A panic condition.


Function Documentation

char* soap_get_logfile ( void   ) 

Get the filename of the logfile.

Returns:
Pointer to the filename or null otherwise.

soap_loglevel_t soap_get_loglevel ( void   ) 

Get the loglevel.

Returns:
The current loglevel.

int soap_log_set_logtype ( int  type  ) 

This function sets the type of logging.

Returns:
The old logtype.
See also:
- SOAP_LOG_DISABLED

void soap_set_logfile ( const char *  filename  ) 

Set the logfile.

Parameters:
filename The filename of the logfile.

soap_loglevel_t soap_set_loglevel ( soap_loglevel_t  loglevel  ) 

Set the loglevel.

Parameters:
level The new loglevel.
Returns:
The old loglevel.


csoap project homepage: http://csoap.sourceforge.net