mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
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 threads = 10;
|
||||
<<<<<<< HEAD
|
||||
bool auto_flush = false;
|
||||
=======
|
||||
bool auto_flush = false;
|
||||
>>>>>>> cppformat
|
||||
int file_size = 30 * 1024 * 1024;
|
||||
int rotating_files = 5;
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
// spdlog usage example
|
||||
//
|
||||
#include <iostream>
|
||||
#include "spdlog/spdlog.h"ls
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
|
||||
int main(int, char* [])
|
||||
@ -49,7 +49,7 @@ int main(int, char* [])
|
||||
|
||||
|
||||
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("Positional args are {1} {0}..", "too", "supported");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user