mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 00:54:21 +03:00 
			
		
		
		
	added useful macro for logger
This commit is contained in:
		
				
					committed by
					
						
						Stefan Andritoiu
					
				
			
			
				
	
			
			
			
						parent
						
							e3f1533652
						
					
				
				
					commit
					9d6944f9b8
				
			@@ -5,12 +5,12 @@ using namespace upm;
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  UPM_LOGGER::getLogLevel() = LOG_ERROR;
 | 
			
		||||
  UPM_LOGGER::LogLevel() = LOG_INFO;
 | 
			
		||||
 | 
			
		||||
  UPM_LOGGER().get(LOG_WARNING) << "a loop with 4 iterations";
 | 
			
		||||
  UPM_LOG(LOG_WARNING) << "a loop with 4 iterations";
 | 
			
		||||
 | 
			
		||||
  for (int i = 0; i < 4; ++i) {
 | 
			
		||||
    UPM_LOGGER().get(LOG_DEBUG) << "i = " << i;
 | 
			
		||||
    UPM_LOG(LOG_DEBUG) << "i = " << i;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user