chore: remove unused ILogOutputters:show
This commit is contained in:
parent
023e8dc78e
commit
6b2c3c1844
5 changed files with 0 additions and 39 deletions
|
|
@ -39,15 +39,6 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual void close() = 0;
|
virtual void close() = 0;
|
||||||
|
|
||||||
//! Show the outputter
|
|
||||||
/*!
|
|
||||||
Causes the output to become visible. This generally only makes sense
|
|
||||||
for a logger in a graphical user interface. Other implementations
|
|
||||||
will do nothing. Iff \p showIfEmpty is \c false then the implementation
|
|
||||||
may optionally only show the log if it's not empty.
|
|
||||||
*/
|
|
||||||
virtual void show(bool showIfEmpty) = 0;
|
|
||||||
|
|
||||||
//! Write a message with level
|
//! Write a message with level
|
||||||
/*!
|
/*!
|
||||||
Writes \c message, which has the given \c level, to a log.
|
Writes \c message, which has the given \c level, to a log.
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,6 @@ void StopLogOutputter::close()
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopLogOutputter::show(bool)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
bool StopLogOutputter::write(LogLevel, const QString &)
|
bool StopLogOutputter::write(LogLevel, const QString &)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -55,11 +50,6 @@ void ConsoleLogOutputter::close()
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConsoleLogOutputter::show(bool showIfEmpty)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ConsoleLogOutputter::write(LogLevel level, const QString &msg)
|
bool ConsoleLogOutputter::write(LogLevel level, const QString &msg)
|
||||||
{
|
{
|
||||||
if ((level >= LogLevel::Fatal) && (level <= LogLevel::Warning))
|
if ((level >= LogLevel::Fatal) && (level <= LogLevel::Warning))
|
||||||
|
|
@ -89,11 +79,6 @@ void SystemLogOutputter::close()
|
||||||
ARCH->closeLog();
|
ARCH->closeLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SystemLogOutputter::show(bool showIfEmpty)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SystemLogOutputter::write(LogLevel level, const QString &msg)
|
bool SystemLogOutputter::write(LogLevel level, const QString &msg)
|
||||||
{
|
{
|
||||||
ARCH->writeLog(level, msg);
|
ARCH->writeLog(level, msg);
|
||||||
|
|
@ -168,8 +153,3 @@ void FileLogOutputter::close()
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileLogOutputter::show(bool showIfEmpty)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ public:
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
void open(const QString &title) override;
|
void open(const QString &title) override;
|
||||||
void close() override;
|
void close() override;
|
||||||
void show(bool showIfEmpty) override;
|
|
||||||
bool write(LogLevel level, const QString &message) override;
|
bool write(LogLevel level, const QString &message) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -45,7 +44,6 @@ public:
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
void open(const QString &title) override;
|
void open(const QString &title) override;
|
||||||
void close() override;
|
void close() override;
|
||||||
void show(bool showIfEmpty) override;
|
|
||||||
bool write(LogLevel level, const QString &message) override;
|
bool write(LogLevel level, const QString &message) override;
|
||||||
void flush() const;
|
void flush() const;
|
||||||
};
|
};
|
||||||
|
|
@ -65,7 +63,6 @@ public:
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
void open(const QString &title) override;
|
void open(const QString &title) override;
|
||||||
void close() override;
|
void close() override;
|
||||||
void show(bool showIfEmpty) override;
|
|
||||||
bool write(LogLevel level, const QString &message) override;
|
bool write(LogLevel level, const QString &message) override;
|
||||||
|
|
||||||
void setLogFilename(const QString &title);
|
void setLogFilename(const QString &title);
|
||||||
|
|
@ -87,7 +84,6 @@ public:
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
void open(const QString &title) override;
|
void open(const QString &title) override;
|
||||||
void close() override;
|
void close() override;
|
||||||
void show(bool showIfEmpty) override;
|
|
||||||
bool write(LogLevel level, const QString &message) override;
|
bool write(LogLevel level, const QString &message) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,6 @@ void MSWindowsDebugOutputter::close()
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
void MSWindowsDebugOutputter::show(bool showIfEmpty)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg)
|
bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg)
|
||||||
{
|
{
|
||||||
std::wstring out = msg.toStdWString() + L"\n";
|
std::wstring out = msg.toStdWString() + L"\n";
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ public:
|
||||||
// ILogOutputter overrides
|
// ILogOutputter overrides
|
||||||
void open(const QString &title) override;
|
void open(const QString &title) override;
|
||||||
void close() override;
|
void close() override;
|
||||||
void show(bool showIfEmpty) override;
|
|
||||||
bool write(LogLevel level, const QString &message) override;
|
bool write(LogLevel level, const QString &message) override;
|
||||||
void flush();
|
void flush();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue