|
dlog
Logging framework
|
Go to the source code of this file.
Macros | |
| #define | DLOGUTIL_MAX_DUMP_SIZE UINT_MAX |
| Enables full dump mode. @since_tizen 6.0. More... | |
Typedefs | |
| typedef struct dlogutil_entry | dlogutil_entry_s |
| A struct containing a single log entry. @since_tizen 6.0. More... | |
| typedef struct dlogutil_config | dlogutil_config_s |
| A struct containing libdlogutil configuration. @since_tizen 6.0. More... | |
| typedef struct dlogutil_state | dlogutil_state_s |
| A struct containing log getting state. @since_tizen 6.0. More... | |
Enumerations | |
| enum | dlogutil_sorting_order_e { DLOGUTIL_SORT_SENT_MONO = 0 , DLOGUTIL_SORT_SENT_REAL , DLOGUTIL_SORT_RECV_MONO , DLOGUTIL_SORT_RECV_REAL , DLOGUTIL_SORT_DEFAULT } |
| Enumeration for sorting orders. @since_tizen 6.0. More... | |
Functions | |
| int | dlogutil_entry_get_tid (const dlogutil_entry_s *entry, pid_t *tid) |
| Retrieves the TID of the log sender. @since_tizen 6.0. More... | |
| int | dlogutil_entry_get_pid (const dlogutil_entry_s *entry, pid_t *pid) |
| Retrieves the PID of the log sender. @since_tizen 6.0. More... | |
| int | dlogutil_entry_get_tag (const dlogutil_entry_s *entry, const char **tag) |
| Retrieves the tag of the log entry. @since_tizen 6.0. More... | |
| int | dlogutil_entry_get_message (const dlogutil_entry_s *entry, const char **msg) |
| Retrieves the message of the log entry. @since_tizen 6.0. More... | |
| int | dlogutil_entry_get_timestamp (const dlogutil_entry_s *entry, dlogutil_sorting_order_e order, struct timespec *ts) |
| Retrieves the timestamp of the log entry. @since_tizen 6.0. More... | |
| int | dlogutil_entry_get_priority (const dlogutil_entry_s *entry, log_priority *prio) |
| Retrieves the priority of the log entry. @since_tizen 6.0. More... | |
| dlogutil_config_s * | dlogutil_config_create (void) |
| Creates a new dlogutil_config_s struct. @since_tizen 6.0. More... | |
| void | dlogutil_config_destroy (dlogutil_config_s *config) |
| Destroys the dlogutil_config_s struct. @since_tizen 6.0. More... | |
| int | dlogutil_config_filter_tid (dlogutil_config_s *config, pid_t tid) |
| Enables retrieving only those logs that are logged by the thread with the given TID. @since_tizen 6.0. More... | |
| int | dlogutil_config_filter_pid (dlogutil_config_s *config, pid_t pid) |
| Enables retrieving only those logs that are logged by the process with the given PID. @since_tizen 6.0. More... | |
| int | dlogutil_config_filter_filterspec (dlogutil_config_s *config, const char *query) |
| Enables retrieving only those logs that match a given filter. @since_tizen 6.0. More... | |
| int | dlogutil_config_sorting_disable (dlogutil_config_s *config) |
| Disables log sorting. @since_tizen 6.0. More... | |
| int | dlogutil_config_sorting_enable (dlogutil_config_s *config) |
| Enables sorting. @since_tizen 6.0. More... | |
| int | dlogutil_config_sorting_enable_with_size (dlogutil_config_s *config, unsigned int entry_count) |
| Enables sorting, choosing the sort buffer size manually. @since_tizen 6.0. More... | |
| int | dlogutil_config_order_set (dlogutil_config_s *config, dlogutil_sorting_order_e sort_by) |
| Chooses a timestamp type to sort by. @since_tizen 6.0. More... | |
| int | dlogutil_config_buffer_add (dlogutil_config_s *config, log_id_t buf) |
| Adds a buffer to be handled @since_tizen 6.0. More... | |
| void | dlogutil_state_destroy (dlogutil_state_s *state) |
| Destroys the dlogutil_state_s struct. @since_tizen 6.0. More... | |
| int | dlogutil_config_mode_set_continuous (dlogutil_config_s *config) |
| Set log retrieval mode to retrieving all the logs since the start of the system without an end. @since_tizen 6.0. More... | |
| int | dlogutil_config_mode_set_monitor (dlogutil_config_s *config) |
| Set log retrieval mode to retrieving all the logs since the call without an end. @since_tizen 6.0. More... | |
| int | dlogutil_config_mode_set_dump (dlogutil_config_s *config, unsigned int entry_count) |
| Set log retrieval mode to dumping all the logs since the start of the system until the call (possibly a specified amount of the most recent of them instead). @since_tizen 6.0. More... | |
| int | dlogutil_config_connect (dlogutil_config_s *config, dlogutil_state_s **state_out) |
| Finalizes the config into a state struct by connecting to buffers @since_tizen 6.0. More... | |
| int | dlogutil_get_log (dlogutil_state_s *state, int timeout, dlogutil_entry_s **entry_out) |
| Gets a single log. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_clear (dlogutil_state_s *state, log_id_t buffer) |
| Clears a log buffer. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_get_name (log_id_t buffer, const char **name) |
| Gets the name of a buffer. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_get_capacity (dlogutil_state_s *state, log_id_t buffer, unsigned int *capacity) |
| Gets the capacity of a buffer. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_get_usage (dlogutil_state_s *state, log_id_t buffer, unsigned int *usage) |
| Gets the usage of a buffer. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_get_default_ts_type (log_id_t buffer, dlogutil_sorting_order_e *type) |
| Gets the default timestamp type of a buffer. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_check_ts_type_available (log_id_t buffer, dlogutil_sorting_order_e type, bool *available) |
| Checks if a buffer contains timestamps of a given type. @since_tizen 6.0. More... | |
| int | dlogutil_buffer_get_alias (dlogutil_state_s *state, log_id_t buffer, log_id_t *real_buffer) |
| Gets the buffer aliasing information @since_tizen 6.0. More... | |