Commit 0f39da54 authored by gabime's avatar gabime

Updated example

parent 28fef35a
...@@ -22,8 +22,8 @@ void syslog_example(); ...@@ -22,8 +22,8 @@ void syslog_example();
void custom_flags_example(); void custom_flags_example();
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "spdlog/cfg/env.h" // support for loading levels from the environment variable #include "spdlog/cfg/env.h" // support for loading levels from the environment variable
#include "spdlog/fmt/ostr.h" #include "spdlog/fmt/ostr.h" // support for user defined types
int main(int, char *[]) int main(int, char *[])
{ {
...@@ -222,7 +222,6 @@ void multi_sink_example() ...@@ -222,7 +222,6 @@ void multi_sink_example()
} }
// User defined types logging by implementing operator<< // User defined types logging by implementing operator<<
#include "spdlog/fmt/ostr.h" // must be included
struct my_type struct my_type
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment