| 
									
										
										
										
											2014-11-24 02:44:45 +02:00
										 |  |  | #include "g2logworker.h"
 | 
					
						
							|  |  |  | #include "g2log.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int main(int, char* argv[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     int howmany = 1000000; | 
					
						
							| 
									
										
										
										
											2014-11-29 20:02:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     g2LogWorker g2log(argv[0], "logs"); | 
					
						
							| 
									
										
										
										
											2014-11-24 02:44:45 +02:00
										 |  |  |     g2::initializeLogging(&g2log); | 
					
						
							| 
									
										
										
										
											2014-11-29 20:02:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-24 02:44:45 +02:00
										 |  |  |     for(int i  = 0 ; i < howmany; ++i) | 
					
						
							|  |  |  |         LOG(INFO) << "g2log message # " << i << ": This is some text for your pleasure"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } |