Project

General

Profile

Actions

Bug #6249

open

logging: ANSI color sequences should be reset after log message

Added by manawyrm 6 months ago. Updated 5 months ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
libosmocore
Target version:
-
Start date:
11/07/2023
Due date:
% Done:

100%

Spec Reference:

Description

Currently, libosmocore will output color control escape sequences to print logs in a specific color.
When logging these messages to something mixed with other messages (like systemd-journald), the missing reset at the end of the message causes output like this:

Proposed fix: Output a color reset at the end of each log message. This adds 4 bytes (escape, [0m) at the end of each message, which IMHO is reasonable.


Files


Related issues

Related to libosmocore - Bug #6284: '\0' in log outputResolvedneels12/04/2023

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)