Beispiel #1
0
void
app_shutdown(void)
{
    run_application_hook(AH_SHUTDOWN);
    log_tags_deinit();
    stats_destroy();
    dns_cache_destroy();
    child_manager_deinit();
    g_list_foreach(application_hooks, (GFunc) g_free, NULL);
    g_list_free(application_hooks);
    msg_deinit();
}
Beispiel #2
0
int
main()
{
    log_msg_registry_init();
    log_tags_init();
    configuration = cfg_new(0x0201);
    plugin_load_module("syslogformat", configuration, NULL);
    msg_format_options_defaults(&parse_options);
    msg_format_options_init(&parse_options, configuration);

    frequent_words_tests();
    find_clusters_slct_tests();
    log_tags_deinit();

    return  (fail ? 1 : 0);

}