fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-trx/+/34320?usp=email )


Change subject: ms: logging: print category, level, and extended timestamp
......................................................................

ms: logging: print category, level, and extended timestamp

Change-Id: I14da3c9e77681268e4f575a6ca7220eedbf2a7a5
Related: osmocom-bb.git Ie3d259f3255d8af80e6780f850b808fa243f97b4
---
M Transceiver52M/ms/ms_upper.cpp
1 file changed, 23 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/20/34320/1

diff --git a/Transceiver52M/ms/ms_upper.cpp b/Transceiver52M/ms/ms_upper.cpp
index b161f4a..63c222f 100644
--- a/Transceiver52M/ms/ms_upper.cpp
+++ b/Transceiver52M/ms/ms_upper.cpp
@@ -35,7 +35,9 @@
 #include "convolve.h"
 #include "convert.h"

+#include <osmocom/core/application.h>
 #include <osmocom/gsm/gsm_utils.h>
+
 #include <osmocom/bb/trxcon/trxcon.h>
 #include <osmocom/bb/trxcon/trxcon_fsm.h>
 #include <osmocom/bb/trxcon/l1ctl_server.h>
@@ -424,6 +426,17 @@
        msgb_talloc_ctx_init(tall_trxcon_ctx, 0);
        trxc_log_init(tall_trxcon_ctx);

+       /* Configure pretty logging */
+       log_set_print_extended_timestamp(osmo_stderr_target, 1);
+       log_set_print_category_hex(osmo_stderr_target, 0);
+       log_set_print_category(osmo_stderr_target, 1);
+       log_set_print_level(osmo_stderr_target, 1);
+
+       log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_BASENAME);
+       log_set_print_filename_pos(osmo_stderr_target, 
LOG_FILENAME_POS_LINE_END);
+
+       osmo_fsm_log_timeouts(true);
+
        g_trxcon = trxcon_inst_alloc(tall_trxcon_ctx, 0);
        g_trxcon->gsmtap = nullptr;
        g_trxcon->phyif = nullptr;

--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/34320?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I14da3c9e77681268e4f575a6ca7220eedbf2a7a5
Gerrit-Change-Number: 34320
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to