mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
CLogger: destructor needs to be virtual
This commit is contained in:
parent
1bb7de1dd9
commit
d9f48db5db
|
@ -27,9 +27,9 @@
|
|||
* default logger (CFileLogger).
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_LOGGER_H
|
||||
#define INCLUDED_LOGGER_H
|
||||
|
||||
#ifndef INCLUDED_LOGGER_H
|
||||
#define INCLUDED_LOGGER_H
|
||||
|
||||
#include "Types.h"
|
||||
#include "Version.h"
|
||||
#include "Util/NewConfig.h"
|
||||
|
@ -56,14 +56,18 @@
|
|||
class CLogger
|
||||
{
|
||||
public:
|
||||
// Log level in ascending order
|
||||
enum LogLevel: int
|
||||
{
|
||||
All = 0,
|
||||
Debug,
|
||||
Info,
|
||||
Error
|
||||
};
|
||||
// Log level in ascending order
|
||||
enum LogLevel: int
|
||||
{
|
||||
All = 0,
|
||||
Debug,
|
||||
Info,
|
||||
Error
|
||||
};
|
||||
|
||||
virtual ~CLogger()
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* DebugLog(fmt, ...):
|
||||
|
@ -276,7 +280,7 @@ extern void SetLogger(std::shared_ptr<CLogger> logger);
|
|||
* GetLogger(void):
|
||||
*
|
||||
* Returns:
|
||||
* Current logger object (null pointer if not set).
|
||||
* Current logger object (null pointer if not set).
|
||||
*/
|
||||
extern std::shared_ptr<CLogger> GetLogger(void);
|
||||
|
||||
|
@ -289,5 +293,5 @@ extern std::shared_ptr<CLogger> GetLogger(void);
|
|||
*/
|
||||
std::shared_ptr<CLogger> CreateLogger(const Util::Config::Node &config);
|
||||
|
||||
|
||||
#endif // INCLUDED_LOGGER_H
|
||||
|
||||
#endif // INCLUDED_LOGGER_H
|
||||
|
|
Loading…
Reference in a new issue