24 lines
435 B
C++
24 lines
435 B
C++
// No copyright
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "iface/common/exception.hh"
|
|
#include "iface/subsys/logger.hh"
|
|
|
|
|
|
namespace nf7::core {
|
|
|
|
class NullLogger : public subsys::Logger {
|
|
public:
|
|
static inline const auto kInstance = std::make_shared<NullLogger>();
|
|
|
|
public:
|
|
NullLogger() noexcept : subsys::Logger("nf7::core::NullLogger") { }
|
|
|
|
public:
|
|
void Push(const Item&) noexcept override { }
|
|
};
|
|
|
|
} // namespace nf7::core
|