You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/example/mylibrary.cpp

22 lines
434 B
C++

//
// Copyright(c) 2021
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "mylibrary.h"
#include <spdlog/spdlog.h>
namespace lib
{
const std::string logger_name = "example";
void set_logger(const std::shared_ptr<spdlog::logger>& logger)
{
spdlog::set_default_logger(logger);
}
void test()
{
spdlog::info("This message is from the shared library.");
}
}