Man page - qb_log_from_external_source(3)
Packages contains this manual
- qb_rb_space_free(3)
- qb_loop_poll_low_fds_event_set(3)
- qbdefs.h(3)
- qb_ipcs_context_get(3)
- qb_loop_stop(3)
- qb_loop_signal_add(3)
- qb_log_target_format(3)
- qb_log_facility2str(3)
- qb_util_nano_from_epoch_get(3)
- qb_log_target_user_data_get(3)
- qb_array_free(3)
- qb_map_rm(3)
- qb_loop_signal_mod(3)
- qb_array_index(3)
- qbipc_common.h(3)
- qb_loop_poll_del(3)
- qb_list_splice(3)
- qb_loop_timer_add(3)
- qb_ipcc_get_buffer_size(3)
- qb_rb_close(3)
- qb_ipcs_connection_stats_get(3)
- qb_loop_signal_del(3)
- qbipcs.h(3)
- qb_log_callsites_dump(3)
- qb_log_blackbox_print_from_file(3)
- qb_skiplist_create(3)
- qb_ipcs_poll_handlers_set(3)
- qb_rb_chunk_reclaim(3)
- qb_hdb_handle_create(3)
- qb_log_real_va_(3)
- qb_map_get(3)
- qblist.h(3)
- qb_rb_create_from_file(3)
- qb_thread_lock_create(3)
- qb_rb_chown(3)
- qb_atomic_int_compare_and_exchange(3)
- qb_timespec_add_ms(3)
- qb_util_stopwatch_stop(3)
- qb_map_iter_free(3)
- qb_atomic_int_get(3)
- qb_thread_trylock(3)
- qbhdb.h(3)
- qb_log_callsites_register(3)
- qb_ipcs_connection_auth_set(3)
- qb_thread_lock_destroy(3)
- qb_map_iter_create(3)
- qb_log_filter_ctl(3)
- qb_list_add_tail(3)
- qb_ipcs_create(3)
- qb_atomic_int_exchange_and_add(3)
- qb_util_stopwatch_split(3)
- qb_log_file_reopen(3)
- qb_loop_poll_add(3)
- qb_thread_lock(3)
- qb_rb_chunk_alloc(3)
- qb_loop_create(3)
- qb_log_thread_start(3)
- qb_ipcs_enforce_buffer_size(3)
- qbloop.h(3)
- qb_log_ctl2(3)
- qb_log_facility2int(3)
- qb_atomic_int_set(3)
- qb_array_num_bins_get(3)
- qb_thread_unlock(3)
- qbmap.h(3)
- qbutil.h(3)
- qb_util_stopwatch_free(3)
- qb_atomic_init(3)
- qb_loop_job_del(3)
- qb_log_from_external_source_va(3)
- qb_ipcc_event_recv(3)
- qblog.h(3)
- qb_rb_chunk_read(3)
- qb_log_callsite_get(3)
- qb_log_target_user_data_set(3)
- qb_ipcs_connection_next_get(3)
- qb_log_file_open(3)
- qb_ipcc_recv(3)
- qb_util_set_log_function(3)
- qb_rb_chunk_commit(3)
- qb_util_stopwatch_create(3)
- qb_ipcs_event_sendv(3)
- qb_rb_space_used(3)
- qb_array_grow(3)
- qb_hdb_destroy(3)
- qb_array_new_bin_cb_set(3)
- qb_atomic_pointer_compare_and_exchange(3)
- qb_log_real_(3)
- qb_log_tags_stringify_fn_set(3)
- qb_ipcs_event_send(3)
- qb_trie_create(3)
- qb_ipcc_context_get(3)
- qb_ipcc_connect(3)
- qb_hdb_nocheck_convert(3)
- qb_ipcc_verify_dgram_max_msg_size(3)
- qb_ipcc_fd_get(3)
- qb_atomic_int_add(3)
- qb_log_ctl(3)
- qb_map_destroy(3)
- qb_log_init(3)
- qb_rb_chmod(3)
- qb_log_custom_open(3)
- qb_log_thread_priority_set(3)
- qb_log_format_set(3)
- qb_loop_job_add(3)
- qb_ipcc_sendv_recv(3)
- qb_log_from_external_source(3)
- qb_ipcs_stats_get(3)
- qb_loop_run(3)
- qb_rb_shared_user_data_get(3)
- qb_ipcs_unref(3)
- qb_ipcc_disconnect(3)
- qb_map_notify_del(3)
- qb_list_del(3)
- qb_hdb_base_convert(3)
- qb_trie_dump(3)
- qb_hdb_handle_put(3)
- qb_util_stopwatch_split_last(3)
- qb_ipcc_sendv(3)
- qb_list_empty(3)
- qb_hdb_handle_get_always(3)
- qb_ipcc_is_connected(3)
- qb_map_notify_add(3)
- qb_log_fini(3)
- qb_ipcs_response_sendv(3)
- qb_util_stopwatch_split_ctl(3)
- qb_atomic_pointer_get(3)
- qb_ipcs_connection_service_context_get(3)
- qb_log_blackbox_write_to_file(3)
- qb_ipcs_context_set(3)
- qb_util_stopwatch_start(3)
- qb_hdb_handle_get(3)
- qb_rb_name_get(3)
- qb_atomic_pointer_set(3)
- qb_util_timespec_from_epoch_get(3)
- qb_strerror_r(3)
- qb_list_length(3)
- qb_ipcs_connection_first_get(3)
- qb_ipcc_context_set(3)
- qb_util_stopwatch_sec_elapsed_get(3)
- qb_log_custom_close(3)
- qb_hdb_iterator_reset(3)
- qb_util_nano_current_get(3)
- qb_loop_timer_is_running(3)
- qb_list_is_last(3)
- qb_ipcs_connection_ref(3)
- qb_ipcs_request_rate_limit(3)
- qb_hdb_handle_refcount_get(3)
- qb_hdb_iterator_next(3)
- qb_map_pref_iter_create(3)
- qb_loop_timer_expire_time_get(3)
- qb_list_splice_tail(3)
- qb_list_add(3)
- qb_loop_destroy(3)
- qb_ipcs_service_context_set(3)
- qb_map_put(3)
- qb_ipcs_service_id_get(3)
- qb_loop_timer_del(3)
- qb_map_iter_next(3)
- qb_util_nano_monotonic_hz(3)
- qb_ipcs_connection_unref(3)
- qb_log_filter_ctl2(3)
- qb_util_stopwatch_us_elapsed_get(3)
- qbipcc.h(3)
- qbarray.h(3)
- qb_ipcs_service_context_get(3)
- qb_ipcs_connection_get_buffer_size(3)
- qb_ipcc_send(3)
- qb_rb_chunks_used(3)
- qb_rb_open(3)
- qb_ipcs_response_send(3)
- qb_hdb_handle_destroy(3)
- qb_log_file_close(3)
- qb_rb_chunk_peek(3)
- qb_ipcs_ref(3)
- qb_rb_write_to_file(3)
- qb_rb_chunk_write(3)
- qbatomic.h(3)
- qb_hdb_create(3)
- qb_array_create(3)
- qb_hashtable_create(3)
- qb_map_count_get(3)
- qb_ipcc_fc_enable_max_set(3)
- qb_util_stopwatch_time_split_get(3)
- qb_ipcs_disconnect(3)
- qb_ipcs_run(3)
- qb_list_replace(3)
- qb_loop_poll_mod(3)
- qb_ipcs_destroy(3)
- qb_array_elems_per_bin_get(3)
- qb_array_create_2(3)
- qb_ipcs_connection_stats_get_2(3)
- qbrb.h(3)
- qb_map_foreach(3)
- qb_list_init(3)
- qb_loop_timer_expire_time_remaining(3)
- qb_rb_refcount_get(3)
- qb_map_notify_del_2(3)
- qb_log_filter_fn_set(3)
apt-get install libqb-dev
Manual
QB_LOG_FROM_EXTERNAL_SOURCE
NAMESYNOPSIS
PARAMS
DESCRIPTION
NOTE
SEE ALSO
COPYRIGHT
NAME
qb_log_from_external_source - This function is to import logs from other code (like libraries) that provide a callback with their logs.
SYNOPSIS
#include <qb/qblog.h>
void
qb_log_from_external_source
(
const char *
function
, /* originating function
name */
const char *
filename
, /* originating filename */
const char *
format
, /* format string */
uint8_t
priority
, /* this takes syslog
priorities. */
uint32_t
lineno
, /* file line number */
/*
* this is a uint32_t that you can use with
*
qb_log_tags_stringify_fn_set()
to "tag" a
log message with a feature or sub-system then you can use
* "%g" in the format specifer to print it out.
*/
uint32_t
tags
,
...
);
PARAMS
function originating function name
filename originating filename
format format string
priority this takes syslog priorities.
lineno file line number
tags this is a uint32_t that you can use with qb_log_tags_stringify_fn_set() to "tag" a log message with a feature or sub-system then you can use "%g" in the format specifer to print it out.
(null)
DESCRIPTION
NOTE
the performance of this will not impress you, as the filtering is done on each log message, not beforehand. So try doing basic pre-filtering.
SEE ALSO
qb_log_filter_fn_set (3), qb_log_from_external_source_va2 (3), qb_log_thread_start (3), qb_log_target_user_data_get (3), qb_log_tags_stringify_fn_set (3), qb_log_file_reopen (3), qb_log_fini (3), qb_log_callsites_dump (3), qb_log_ctl2 (3), qb_log_target_user_data_set (3), qb_log_target_format (3), qb_log_thread_priority_set (3), qb_log_facility2int (3), qb_log_callsites_register (3), qb_log_filter_ctl2 (3), qb_log_file_close (3), qb_log_format_set (3), qb_log_real_ (3), qb_log_from_external_source_va (3), qb_log_callsite_get (3), qb_log_blackbox_write_to_file (3), qb_log_real_va_ (3), qb_log_blackbox_print_from_file (3), qb_log_facility2str (3), qb_log_callsite_get2 (3), qb_log_ctl (3), qb_log_filter_ctl (3), qb_log_custom_close (3), qb_log_init (3), qb_log_file_open (3), qb_log_custom_open (3)
COPYRIGHT
Copyright (c) 2017 Red Hat, Inc.