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


Change subject: s1gw: osmo-s1gw.config: enable colors in logging
......................................................................

s1gw: osmo-s1gw.config: enable colors in logging

Change-Id: I49fa2ca9d7aea5a2728d07f176b80a6438551047
---
M s1gw/osmo-s1gw.config
1 file changed, 9 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/41/37941/1

diff --git a/s1gw/osmo-s1gw.config b/s1gw/osmo-s1gw.config
index ed87ae8..86a89c1 100644
--- a/s1gw/osmo-s1gw.config
+++ b/s1gw/osmo-s1gw.config
@@ -24,14 +24,14 @@
   [{logger_level, debug},
    {logger,
     [{handler, default, logger_std_h,
-      #{level => debug,
-        formatter => {logger_formatter,
-                      #{template => [time, " ",
-                                     "[", level, "]",
-                                     {pid, [" ", pid, ""], ""},
-                                     {prefix, [" ", prefix, " ::"], ""},
-                                     " ", msg,
-                                     {mfa, [" (", mfa, ":", line, ")"], ""},
-                                     "\n"]}}}}]}]}].
+      #{formatter =>
+        {logger_color_formatter, #{legacy_header => false,
+                                   single_line => false,
+                                   template => [time, " ", color, "[", level, 
"]",
+                                                {pid, [" ", pid, ""], ""},
+                                                {prefix, [" ", prefix, " ::"], 
""},
+                                                " ", msg,
+                                                {mfa, [" (", mfa, ":", line, 
")"], ""},
+                                                reset, "\n"]}}}}]}]}].

 %% vim:set ts=2 sw=2 et:

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

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I49fa2ca9d7aea5a2728d07f176b80a6438551047
Gerrit-Change-Number: 37941
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to