2 #include "pnd_logger.h"
4 // arbitrary warning level
11 pnd_log ( PLOG_LOW, "low message, should be ignored" );
13 /* normal operation -------------- */
15 pnd_log ( PLOG_LOW, "low message, should go stdout once" );
16 /* ------------------------------- */
18 /* extra testing vvvvvvvvvvvvvvvvv
22 pnd_log ( PLOG_LOW, "low message, should go stdout twice" );
27 pnd_log_set_pretext ( "loggertest" );
28 pnd_log ( PLOG_LOW, "low message, emit once, with pretext" );
30 pnd_log_set_filter ( PLOG_MEDIUM );
31 pnd_log ( PLOG_LOW, "low message, emit once, filter is medium+" );
32 pnd_log ( PLOG_MEDIUM, "medium message, emit once, filter is medium+" );
33 pnd_log ( PLOG_HIGH, "high message, emit once, filter is medium+" );
35 pnd_log_set_filter ( PLOG_LOW );
36 pnd_log ( PLOG_LOW, "low message, emit once, filter is low+ again" );