mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
30 lines
545 B
C++
30 lines
545 B
C++
#pragma once
|
|
|
|
#include "common/Singleton.hpp"
|
|
|
|
#include "messages/Message.hpp"
|
|
#include "singletons/helper/LoggingChannel.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace chatterino {
|
|
|
|
class Paths;
|
|
|
|
class Logging : public Singleton
|
|
{
|
|
Paths *pathManager = nullptr;
|
|
|
|
public:
|
|
Logging() = default;
|
|
|
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
|
|
|
void addMessage(const QString &channelName, MessagePtr message);
|
|
|
|
private:
|
|
std::map<QString, std::unique_ptr<LoggingChannel>> loggingChannels_;
|
|
};
|
|
|
|
} // namespace chatterino
|