Replace Emby Logging Mechanism with Log4Net #34

Closed
opened 2026-02-06 19:12:56 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @dcrdev on GitHub (Dec 12, 2018).

Originally assigned to: @dcrdev on GitHub.

I've thought for a while know that the logging mechanism has been somewhat lacklustre - it's impossible to read, has no rotation options and is not rendered in any significant way within the interface.

Therefore I propose we replace logging with Apache Log4Net which is probably the most widely used logging framework within the .NET community.

Specifically this would allow for 3 things:

  • Easy logging to a SQLite database
  • Strict formatting conventions
  • Easily abstracted and extractable through a common interface - we could display this in a filterable datatable in the admin interface as oppose to a link to a text file.
Originally created by @dcrdev on GitHub (Dec 12, 2018). Originally assigned to: @dcrdev on GitHub. I've thought for a while know that the logging mechanism has been somewhat lacklustre - it's impossible to read, has no rotation options and is not rendered in any significant way within the interface. Therefore I propose we replace logging with Apache Log4Net which is probably the most widely used logging framework within the .NET community. Specifically this would allow for 3 things: - Easy logging to a SQLite database - Strict formatting conventions - Easily abstracted and extractable through a common interface - we could display this in a filterable datatable in the admin interface as oppose to a link to a text file.
OVERLORD added the enhancement label 2026-02-06 19:12:56 +03:00
Author
Owner

@ryanjerskine commented on GitHub (Dec 13, 2018):

Serilog is another option. Seems pretty popular with newer Core projects. Not sure on a feature comparison though.

@ryanjerskine commented on GitHub (Dec 13, 2018): Serilog is another option. Seems pretty popular with newer Core projects. Not sure on a feature comparison though.
Author
Owner

@Bond-009 commented on GitHub (Dec 13, 2018):

I have used Serilog in the past, and really like it. It's super easy to set up and customize.

@Bond-009 commented on GitHub (Dec 13, 2018): I have used Serilog in the past, and really like it. It's super easy to set up and customize.
Author
Owner

@JustAMan commented on GitHub (Jan 9, 2019):

Fixed by #285

@JustAMan commented on GitHub (Jan 9, 2019): Fixed by #285
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#34