example
This commit is contained in:
		@@ -73,7 +73,8 @@ int main(int, char* [])
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        //
 | 
					        //
 | 
				
			||||||
        // Asynchronous logging is easy..
 | 
					        // Asynchronous logging is easy..
 | 
				
			||||||
        // Just call spdlog::set_async_mode(max_q_size) and all created loggers from now on will be asynchronous..
 | 
					        // Just call spdlog::set_async_mode(q_size) and all created loggers from now on will be asynchronous..
 | 
				
			||||||
 | 
					        // Note: queue size must be power of 2!
 | 
				
			||||||
        //
 | 
					        //
 | 
				
			||||||
        size_t max_q_size = 1048576; 
 | 
					        size_t max_q_size = 1048576; 
 | 
				
			||||||
        spdlog::set_async_mode(max_q_size);
 | 
					        spdlog::set_async_mode(max_q_size);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user