| 
									
										
										
										
											2014-12-20 18:57:01 +02:00
										 |  |  | #include "easylogging++.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _INITIALIZE_EASYLOGGINGPP | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int main(int, char* []) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2014-12-21 02:47:04 +02:00
										 |  |  |     int howmany = 1000000; | 
					
						
							| 
									
										
										
										
											2014-12-21 02:42:37 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-21 02:47:04 +02:00
										 |  |  |     // Load configuration from file
 | 
					
						
							|  |  |  |     el::Configurations conf("easyl.conf"); | 
					
						
							|  |  |  |     el::Loggers::reconfigureLogger("default", conf); | 
					
						
							| 
									
										
										
										
											2014-12-21 02:42:37 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-21 02:47:04 +02:00
										 |  |  |     for(int i  = 0 ; i < howmany; ++i) | 
					
						
							|  |  |  |         LOG(INFO) << "easylog message #" << i << ": This is some text for your pleasure"; | 
					
						
							|  |  |  |     return 0; | 
					
						
							| 
									
										
										
										
											2014-12-20 18:57:01 +02:00
										 |  |  | } |