5#include <spdlog/logger.h>
35 Logger(
const std::string& appName,
const std::string& logFilePath);
42 std::shared_ptr<spdlog::logger>
Get()
const;
45 void OnInit(
const nlohmann::json& initArgs)
override;
49 std::string mLogFilePath;
50 std::shared_ptr<spdlog::logger> mLogger;
A named Part with a parent/child hierarchy and optional thread safety.
Definition Component.h:34
Component wrapper around an spdlog::logger instance.
Definition Logger.h:23
std::shared_ptr< spdlog::logger > Get() const
Returns the underlying spdlog logger, or nullptr before Init().
Logger(const std::string &appName, const std::string &logFilePath)
Constructs a Logger with the given application name and log file path.
void OnInit(const nlohmann::json &initArgs) override
Override this to implement component-specific initialization logic.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14