You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							458 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							458 B
						
					
					
				
								
							 | 
						|
								#include <log4cplus/logger.h>
							 | 
						|
								#include <log4cplus/helpers/loglog.h>
							 | 
						|
								
							 | 
						|
								using namespace log4cplus;
							 | 
						|
								using namespace log4cplus::helpers;
							 | 
						|
								
							 | 
						|
								const LogLevel CRITICAL_LOG_LEVEL = 45000;
							 | 
						|
								
							 | 
						|
								#define LOG4CPLUS_CRITICAL(logger, logEvent) \
							 | 
						|
								    if(logger.isEnabledFor(CRITICAL_LOG_LEVEL)) { \
							 | 
						|
								        log4cplus::tostringstream _log4cplus_buf; \
							 | 
						|
								        _log4cplus_buf << logEvent; \
							 | 
						|
									logger.forcedLog(CRITICAL_LOG_LEVEL, _log4cplus_buf.str(), __FILE__, __LINE__); \
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								
							 |