afc_debug

Name

afc_debug  -- Writes a debug message to the standard error

Synopsis

int afc_debug ( AFC * afc, int level, const char * class_name, const char * message );

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. If this function is not enough flexible for you, than you should take a look at afc_debug_adv() counterpart.

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.

str

Message to show

Result

should be AFC_ERR_NO_ERROR

See Also