afc_debug_adv

Name

afc_debug_adv  -- Writes a debug message to the standard error

Synopsis

int afc_debug_adv ( AFC * afc, int level, const char * class_name, const char * fmt, ... );

Description

This function writes a debug message to the standard error. Depending on the settings of the AFC Base class, messages passed to the afc_debug function may be shown or simply ignored. See afc_set_tag() for more info. The message is composed most likely the standard printf-family functions. If you are looking for something easier to use, please consider afc_debug() function.

Inputs

afc

Pointer to a valid afc instance.

level

The debug message level. Valid values are

AFC_DEBUG_IMPORTANT

This is a very important message that needs to be shown

AFC_DEBUG_STANDARD

This is a standard-importance message.

AFC_DEBUG_VERBOSE

This is a very informative message.

class_name

The name of the class raising the error.

fmt

String format, specified in the same way you do with printf.

...

All params needed by the provieded fmt.

Result

should be AFC_ERR_NO_ERROR

See Also