mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Common: Unify logging namespace with Common
Previously the logging was a in a little bit of a disarray. Some things were in namespaces, and other things were not. Given this code will feature a bit of restructuring during the transition over to fmt, this is a good time to unify it under a single namespace and also remove functions and types from the global namespace. Now, all functions and types are under the Common::Log namespace. The only outliers being, of course, the preprocessor macros.
This commit is contained in:
@ -19,7 +19,7 @@ class QPlainTextEdit;
|
||||
class QPushButton;
|
||||
class QTimer;
|
||||
|
||||
class LogWidget final : public QDockWidget, LogListener
|
||||
class LogWidget final : public QDockWidget, Common::Log::LogListener
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@ -37,7 +37,7 @@ private:
|
||||
void LoadSettings();
|
||||
void SaveSettings();
|
||||
|
||||
void Log(LogTypes::LOG_LEVELS level, const char* text) override;
|
||||
void Log(Common::Log::LOG_LEVELS level, const char* text) override;
|
||||
|
||||
// Log
|
||||
QCheckBox* m_log_wrap;
|
||||
@ -47,7 +47,7 @@ private:
|
||||
|
||||
QTimer* m_timer;
|
||||
|
||||
using LogEntry = std::pair<std::string, LogTypes::LOG_LEVELS>;
|
||||
using LogEntry = std::pair<std::string, Common::Log::LOG_LEVELS>;
|
||||
|
||||
// Maximum number of lines to show in log viewer
|
||||
static constexpr int MAX_LOG_LINES = 5000;
|
||||
|
Reference in New Issue
Block a user