|
|
@ -255,9 +255,8 @@ void android_example()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// log patterns can now contain custom flags!
|
|
|
|
// log patterns can contain custom flags.
|
|
|
|
// add custom flag '%*' which will be cound to a <my_formatter_flag> instance
|
|
|
|
// this will add custom flag '%*' which will be bound to a <my_formatter_flag> instance
|
|
|
|
|
|
|
|
|
|
|
|
#include "spdlog/pattern_formatter.h"
|
|
|
|
#include "spdlog/pattern_formatter.h"
|
|
|
|
class my_formatter_flag : public spdlog::custom_flag_formatter
|
|
|
|
class my_formatter_flag : public spdlog::custom_flag_formatter
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -274,7 +273,6 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void custom_flags_example()
|
|
|
|
void custom_flags_example()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|