refactor: Logging (chat logger) (#5058)

It's no longer a singleton

It's now a unique_ptr that dies together with the Application

* Add getChatLogger to EmptyApplication

* unrelated change: Access Application::instance statically

* fix logging init order

* Add changelog entry
This commit is contained in:
pajlada
2023-12-31 13:51:40 +01:00
committed by GitHub
parent 036a5f3f21
commit 65b1ed312c
7 changed files with 31 additions and 14 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
namespace chatterino {
void Logging::initialize(Settings &settings, Paths & /*paths*/)
Logging::Logging(Settings &settings)
{
// We can safely ignore this signal connection since settings are only-ever destroyed
// on application exit