Pcornat
23246d0d9d
Compilation and linker flags for spdlog are changed to be usable with clang and the project. Another default logger is made in the main.cpp Correction in README.md and format.
12 lines
283 B
C++
12 lines
283 B
C++
#include <iostream>
|
|
#include <spdlog/sinks/stdout_color_sinks.h>
|
|
#include <spdlog/spdlog.h>
|
|
|
|
int main() {
|
|
// Create logger
|
|
auto logger = spdlog::stdout_color_st("single_log");
|
|
spdlog::set_default_logger(logger);
|
|
std::cout << "Hello, World!" << std::endl;
|
|
return EXIT_SUCCESS;
|
|
}
|