| 
									
										
										
										
											2014-11-23 00:24:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "glog/logging.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int main(int, char* argv[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     int howmany = 1000000; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-23 01:12:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     FLAGS_logtostderr = 0; | 
					
						
							|  |  |  |     FLAGS_log_dir = "logs"; | 
					
						
							|  |  |  |     google::InitGoogleLogging(argv[0]); | 
					
						
							| 
									
										
										
										
											2014-11-23 00:24:46 +02:00
										 |  |  |     for(int i  = 0 ; i < howmany; ++i) | 
					
						
							| 
									
										
										
										
											2014-11-24 01:39:51 +02:00
										 |  |  |         LOG(INFO) << "glog message # " << i << ": This is some text for your pleasure"; | 
					
						
							| 
									
										
										
										
											2014-11-23 00:24:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } |