Page MenuHomeFeedback Tracker

More explicit log level in the logs
Feedback, NormalPublic

Description

Hello,

Please consider displaying more explicit log level in the logs so that parsing logs is a bit more straightforward. For example. Given the log line:

13:52:31.635      INVENTORY (E): Couldn't insert item @"ENTITY:4611686018427468851" ('GenericEntity','Assets/Weapons/Magazines/pmag/Magazine_30rnd_PMAG.xob') at <0.000000 0.000000 0.000000> @"{A540E8600876C2A2}Prefabs/Weapons/Magazines/Pmag/Magazine_556x45_PmagWindowed_Coy_30rnd_M855A1_last5tracer.et" into storage @"ENTITY:4611686018427468831" ('GenericEntity','Assets/Characters/Vests/Vest_PCGen_III_Pouches/pouch_tako.xob') at <7199.352051 158.151642 4566.125977> @"{C21DCE954442DD12}Prefabs/Characters/Vests/Vest_PCGen_III_Pouches/Pouch_PCGEN3_takoPouch.et" while spawning initial items inside the storage.

I have to parse "(E):" and then replace it with "error" and then submit, whereas if it said (something like)

13:52:31.635 error      INVENTORY: Couldn't insert item @"ENTITY:4611686018427468851" ('GenericEntity','Assets/Weapons/Magazines/pmag/Magazine_30rnd_PMAG.xob') at <0.000000 0.000000 0.000000> @"{A540E8600876C2A2}Prefabs/Weapons/Magazines/Pmag/Magazine_556x45_PmagWindowed_Coy_30rnd_M855A1_last5tracer.et" into storage @"ENTITY:4611686018427468831" ('GenericEntity','Assets/Characters/Vests/Vest_PCGen_III_Pouches/pouch_tako.xob') at <7199.352051 158.151642 4566.125977> @"{C21DCE954442DD12}Prefabs/Characters/Vests/Vest_PCGen_III_Pouches/Pouch_PCGEN3_takoPouch.et" while spawning initial items inside the storage.

I could simply ingest "error" without any additional parsing. When setting up things like promtail I've found myself fighting with regexes and templates for 30 minutes to get "W" to show up as "warning" whereas if this log level was explicit I could have skipped the torture.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Linux x64
Category
General

Event Timeline

Geez changed the task status from New to Feedback.Jul 8 2024, 3:35 PM