1ea83d9d11
* add dimension selector sliders to czi view * version doc & version bump * cosmetic * fix build? * multi-dimension selection enabled in czi view * remove the parameterized reset function of the renderer it is not and is conceptually questionable doc updates & some minor improvements auto-update CZI-view when sliders are moved set initial window size fix windows build and msvc build For reasons I don not comprehend, on Windows, we must include =opencv2/core/mat.hpp= as the very last header in the =CvMatRender.hpp=. If this is at any other position building on Windows, compilation will break w/ all kinds of cryptic errors regarding OpenCV. When building w/ msvc =__PRETTY_FUNCTION__= is not defined. =ILog.hpp= now defines it. This should be revised to only be set when the compiler is msvc. For the time being, it is considered sufficient though.
30 lines
815 B
C++
30 lines
815 B
C++
#pragma once
|
|
#include <spdlog/common.h>
|
|
#include <spdlog/sinks/basic_file_sink.h>
|
|
#include <spdlog/spdlog.h>
|
|
|
|
#include <memory>
|
|
|
|
#include "ILog.hpp"
|
|
namespace pixelarium::utils::log
|
|
{
|
|
/// @brief Implements ILog using the spdlog library
|
|
/// see https://github.com/gabime/spdlog
|
|
class SpdLogger : public ILog
|
|
{
|
|
public:
|
|
explicit SpdLogger(const std::string& file_sink, const std::string& name);
|
|
|
|
void Info(const std::string& msg) const override;
|
|
void Debug(const std::string& msg) const override;
|
|
void Warn(const std::string& msg) const override;
|
|
void Error(const std::string& msg) const override;
|
|
void ChangeLevel(LogLevel lvl) const override;
|
|
|
|
private:
|
|
std::shared_ptr<spdlog::logger> logger_;
|
|
std::string file_;
|
|
std::string name_;
|
|
};
|
|
} // namespace pixelarium::utils::log
|