aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-18 18:19:23 +0100
committerpespin <pespin@sysmocom.de>2021-02-19 11:21:46 +0000
commit662d10dcdaa471dcdfa244802395a1e261e6f8df (patch)
treec72940d05e3221b8861380a90e86c38138057527 /include/osmocom
parent7bb39e368d644e9d1029a210ea8a720674bd5185 (diff)
logging: Allow prefixing thread ID to each log line
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/logging.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index c7f89dea..4361cad5 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -281,6 +281,8 @@ struct log_target {
unsigned int use_color:1;
/*! should log messages be prefixed with a timestamp? */
unsigned int print_timestamp:1;
+ /*! should log messages be prefixed with the logger Thread ID? */
+ unsigned int print_tid:1;
/*! DEPRECATED: use print_filename2 instead. */
unsigned int print_filename:1;
/*! should log messages be prefixed with a category name? */
@@ -374,6 +376,7 @@ void log_set_all_filter(struct log_target *target, int);
void log_set_use_color(struct log_target *target, int);
void log_set_print_extended_timestamp(struct log_target *target, int);
void log_set_print_timestamp(struct log_target *target, int);
+void log_set_print_tid(struct log_target *target, int);
void log_set_print_filename(struct log_target *target, int);
void log_set_print_filename2(struct log_target *target, enum log_filename_type lft);
void log_set_print_filename_pos(struct log_target *target, enum log_filename_pos pos);