matrix-appservice-irc icon indicating copy to clipboard operation
matrix-appservice-irc copied to clipboard

[FR] Different logging level for file and console output

Open ArchangeGabriel opened this issue 6 years ago • 1 comments

I don’t want my journald log being filled with DEBUG infos, but it could be useful to store them in a file (while keeping WARN/ERROR in journald).

ArchangeGabriel avatar Jan 12 '19 18:01 ArchangeGabriel

I really don't want to post a "send me a copy too" thing here…

This Feature Request didn't have any movement the last 6 years.

I would like to have warnings / errors in my systemd journal. So that a plain journcalctl … shows the really important things ("Oh? Looks like I should take a look?"). If it's empty, then I am happy.

And then I would like to have a rotated, detailed log. That's great for "Okay, something went wrong, maybe the info or debug log has more detail to help me?".

TBH it doesn't sound too complicated to implement?

  • Add another key in the logging config. Maybe consoleLevel?
  • Let it default to the value of level
  • Use it to setup the console logger

ChristianTacke avatar Jan 14 '25 20:01 ChristianTacke