Fix not defined syslog_logger under windows
This commit is contained in:
		
							parent
							
								
									8f24fc5f14
								
							
						
					
					
						commit
						1008f5693d
					
				@ -81,13 +81,17 @@ inline std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st(const std::strin
 | 
			
		||||
    return create<spdlog::sinks::stderr_sink_st>(logger_name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef __linux__
 | 
			
		||||
// Create syslog logger
 | 
			
		||||
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name)
 | 
			
		||||
{
 | 
			
		||||
    return create<spdlog::sinks::syslog_sink>(logger_name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//Create logger with multiple sinks
 | 
			
		||||
 | 
			
		||||
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, spdlog::sinks_init_list sinks)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user