mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 22:00:05 +00:00 
			
		
		
		
	Merge pull request #3580 from daniellimws/common-fmt
common: Migrate logging macros
This commit is contained in:
		
						commit
						a9544ca015
					
				
					 24 changed files with 132 additions and 134 deletions
				
			
		|  | @ -65,14 +65,14 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin, | |||
|                              const std::string::const_iterator end) { | ||||
|     auto level_separator = std::find(begin, end, ':'); | ||||
|     if (level_separator == end) { | ||||
|         LOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: %s", | ||||
|                   std::string(begin, end).c_str()); | ||||
|         NGLOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: {}", | ||||
|                     std::string(begin, end)); | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     const Level level = GetLevelByName(level_separator + 1, end); | ||||
|     if (level == Level::Count) { | ||||
|         LOG_ERROR(Log, "Unknown log level in filter: %s", std::string(begin, end).c_str()); | ||||
|         NGLOG_ERROR(Log, "Unknown log level in filter: {}", std::string(begin, end)); | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|  | @ -83,7 +83,7 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin, | |||
| 
 | ||||
|     const Class log_class = GetClassByName(begin, level_separator); | ||||
|     if (log_class == Class::Count) { | ||||
|         LOG_ERROR(Log, "Unknown log class in filter: %s", std::string(begin, end).c_str()); | ||||
|         NGLOG_ERROR(Log, "Unknown log class in filter: {}", std::string(begin, end)); | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue