Project

General

Profile

Actions

Bug #6272

closed

default config files have different log format config for stderr

Added by laforge 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/24/2023
Due date:
% Done:

100%

Spec Reference:

Description

if one installs osmo-* nightly packages from the feed, one will have various different programs which all log to stderr (which in turn ends up in the journal. That's all good, but what is weird is that those programs come with different log format configurations.

Please let's unify the example config files of all our (dpkg packaged) programs to reflect the same.

I suggest something like this:

 logging color 1
 logging print category-hex 0
 logging print category 1
 logging timestamp 0
 logging print file basename last


Related issues

Related to OsmoTRX - Bug #6269: osmo-trx-uhd fails to start on Debian 12 systemResolvedlaforge11/22/2023

Actions
Related to libosmocore - Feature #5034: logging: Enable category name instead of hex val by defaultStalledpespin02/18/2021

Actions
Actions #1

Updated by laforge 3 months ago

  • Related to Bug #6269: osmo-trx-uhd fails to start on Debian 12 system added
Actions #2

Updated by osmith 3 months ago

I suggest adding

 logging print level 1

as well.

Actions #3

Updated by fixeria 3 months ago

  • Related to Feature #5034: logging: Enable category name instead of hex val by default added
Actions #4

Updated by jolly 3 months ago

  • Status changed from New to In Progress
Actions #5

Updated by jolly 3 months ago

  • % Done changed from 0 to 60

Patches pushed to Gerrit for review.

Actions #6

Updated by pespin 3 months ago

The idea behind disabling timestamps is that journald already provides them for us?

Actions #7

Updated by laforge 3 months ago

On Fri, Dec 01, 2023 at 03:15:04PM +0000, pespin wrote:

The idea behind disabling timestamps is that journald already provides them for us?

yes. It's redundant, and it just shortens the useful length of every line.

Actions #8

Updated by jolly 3 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 60 to 100

Patches for all projects with config examples are merged.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)