Add more source_loc overloads in spdlog namespace
This commit is contained in:
		
							parent
							
								
									e0cf16b7e9
								
							
						
					
					
						commit
						59cbdaaf49
					
				| @ -162,6 +162,12 @@ inline void critical(string_view_t fmt, const Args &... args) | ||||
|     default_logger_raw()->critical(fmt, args...); | ||||
| } | ||||
| 
 | ||||
| template<typename T> | ||||
| inline void log(source_loc source, level::level_enum lvl, const T &msg) | ||||
| { | ||||
|     default_logger_raw()->log(source, lvl, msg); | ||||
| } | ||||
| 
 | ||||
| template<typename T> | ||||
| inline void log(level::level_enum lvl, const T &msg) | ||||
| { | ||||
| @ -205,6 +211,12 @@ inline void critical(const T &msg) | ||||
| } | ||||
| 
 | ||||
| #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT | ||||
| template<typename... Args> | ||||
| inline void log(source_loc source, level::level_enum lvl, wstring_view_t fmt, const Args &... args) | ||||
| { | ||||
|     default_logger_raw()->log(source, lvl, fmt, args...); | ||||
| } | ||||
| 
 | ||||
| template<typename... Args> | ||||
| inline void log(level::level_enum lvl, wstring_view_t fmt, const Args &... args) | ||||
| { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user