fixed example and bench
This commit is contained in:
parent
04c116315a
commit
7f174a2b2f
@ -52,11 +52,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
int howmany = 1048576;
|
int howmany = 1048576;
|
||||||
int threads = 10;
|
int threads = 10;
|
||||||
<<<<<<< HEAD
|
|
||||||
bool auto_flush = false;
|
|
||||||
=======
|
|
||||||
bool auto_flush = false;
|
bool auto_flush = false;
|
||||||
>>>>>>> cppformat
|
|
||||||
int file_size = 30 * 1024 * 1024;
|
int file_size = 30 * 1024 * 1024;
|
||||||
int rotating_files = 5;
|
int rotating_files = 5;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
// spdlog usage example
|
// spdlog usage example
|
||||||
//
|
//
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "spdlog/spdlog.h"ls
|
#include "spdlog/spdlog.h"
|
||||||
|
|
||||||
|
|
||||||
int main(int, char* [])
|
int main(int, char* [])
|
||||||
@ -49,7 +49,7 @@ int main(int, char* [])
|
|||||||
|
|
||||||
|
|
||||||
console->info("Easy padding in numbers like {:08d}", 12);
|
console->info("Easy padding in numbers like {:08d}", 12);
|
||||||
console->info("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
console->info("Support for int: {0:d}; hex: {0:08x}; oct: {0:o}; bin: {0:b}", 42);
|
||||||
console->info("Support for floats {:03.2f}", 1.23456);
|
console->info("Support for floats {:03.2f}", 1.23456);
|
||||||
console->info("Positional args are {1} {0}..", "too", "supported");
|
console->info("Positional args are {1} {0}..", "too", "supported");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user