CLogger: destructor needs to be virtual

This commit is contained in:
Bart Trzynadlowski 2024-03-09 20:56:50 -08:00
parent 1bb7de1dd9
commit d9f48db5db

View file

@ -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