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).
|
* default logger (CFileLogger).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INCLUDED_LOGGER_H
|
#ifndef INCLUDED_LOGGER_H
|
||||||
#define INCLUDED_LOGGER_H
|
#define INCLUDED_LOGGER_H
|
||||||
|
|
||||||
#include "Types.h"
|
#include "Types.h"
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
#include "Util/NewConfig.h"
|
#include "Util/NewConfig.h"
|
||||||
|
@ -56,14 +56,18 @@
|
||||||
class CLogger
|
class CLogger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Log level in ascending order
|
// Log level in ascending order
|
||||||
enum LogLevel: int
|
enum LogLevel: int
|
||||||
{
|
{
|
||||||
All = 0,
|
All = 0,
|
||||||
Debug,
|
Debug,
|
||||||
Info,
|
Info,
|
||||||
Error
|
Error
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtual ~CLogger()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DebugLog(fmt, ...):
|
* DebugLog(fmt, ...):
|
||||||
|
@ -276,7 +280,7 @@ extern void SetLogger(std::shared_ptr<CLogger> logger);
|
||||||
* GetLogger(void):
|
* GetLogger(void):
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* Current logger object (null pointer if not set).
|
* Current logger object (null pointer if not set).
|
||||||
*/
|
*/
|
||||||
extern std::shared_ptr<CLogger> GetLogger(void);
|
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);
|
std::shared_ptr<CLogger> CreateLogger(const Util::Config::Node &config);
|
||||||
|
|
||||||
|
|
||||||
#endif // INCLUDED_LOGGER_H
|
#endif // INCLUDED_LOGGER_H
|
||||||
|
|
Loading…
Reference in a new issue