#include <stdlib.h>
int
main( int argc, char **argv ) {
const char *username = "example-username";
stump(
"The hello world of stumpless." );
stump(
"Login failed for username %s", username );
#ifdef STUMPLESS_NETWORK_TARGETS_SUPPORTED
#endif
#ifdef STUMPLESS_NETWORK_TARGETS_SUPPORTED
#endif
return EXIT_SUCCESS;
}
void stumpless_close_file_target(struct stumpless_target *target)
Closes a file target.
struct stumpless_target * stumpless_open_file_target(const char *name)
Opens a file target.
int stump(const char *message,...)
Logs a message to the default target.
int stump_str(const char *message)
Logs a message to the default target.
void stumpless_free_all(void)
Closes the default target if it has been opened, frees all memory allocated internally,...
struct stumpless_target * stumpless_open_udp4_target(const char *name, const char *destination)
Opens a network target for remote logging over IPv4 and UDP.
void stumpless_close_network_target(const struct stumpless_target *target)
Closes a network target.
A target that log entries can be sent to.
定义 target.h:140
int stumpless_add_message(struct stumpless_target *target, const char *message,...)
Adds a message to a given target.