d71f4168fb
* logger business * code review * rm c-style array * extract image rendering to view * missing view files * init view abstractions * leverage concepts and provide a templateized Enumerate function * RVO * get rid of some warnings * logger business * code review * rm c-style array * extract image rendering to view * missing view files * init view abstractions * leverage concepts and provide a templateized Enumerate function * RVO * get rid of some warnings * logger business * code review * rm c-style array * init view abstractions * leverage concepts and provide a templateized Enumerate function * RVO * get rid of some warnings * logger business * code review * rm c-style array * init view abstractions * leverage concepts and provide a templateized Enumerate function * RVO * get rid of some warnings * Factor out AppGLFW base class The intention here is to get rid of scaffolding in the consumer application class and allow to focus on the "important bits". * Some cleanup * dump unnecessary dependency * link stuff where needed & use only what's needed * remove deprecation warnings * add gallery toggle * make some includes private * add presets * remove dir locals, use presets instead `projectile-configure-project' in conjunction with CMakePresets.json will allow to configure the project. `projectile-compile-project' does sth similar for the compile command. This is equivalent to something like ~cmake --preset clang-debug && cmake --build build --preset clang-debug~ * use presets in pipeline --------- Co-authored-by: m-aXimilian <keuffnermax@gmail.com>
28 lines
722 B
C++
28 lines
722 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
|
|
{
|
|
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
|