mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:10:06 +00:00 
			
		
		
		
	Boost.Log -> spdlog - awips and common
This commit is contained in:
		
							parent
							
								
									3d162f0336
								
							
						
					
					
						commit
						44bcc7dd4c
					
				
					 10 changed files with 82 additions and 103 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| #include <scwx/common/color_table.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
| #include <scwx/util/streams.hpp> | ||||
| 
 | ||||
| #include <cmath> | ||||
|  | @ -9,7 +10,6 @@ | |||
| #include <sstream> | ||||
| 
 | ||||
| #include <boost/gil.hpp> | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| #include <hsluv.h> | ||||
| 
 | ||||
|  | @ -18,7 +18,8 @@ namespace scwx | |||
| namespace common | ||||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ {"[scwx::common::color_table] "}; | ||||
| static const std::string logPrefix_ {"scwx::common::color_table"}; | ||||
| static const auto        logger_ = util::Logger::Create(logPrefix_); | ||||
| 
 | ||||
| enum class ColorMode | ||||
| { | ||||
|  | @ -135,8 +136,7 @@ bool ColorTable::IsValid() const | |||
| 
 | ||||
| std::shared_ptr<ColorTable> ColorTable::Load(const std::string& filename) | ||||
| { | ||||
|    BOOST_LOG_TRIVIAL(debug) | ||||
|       << logPrefix_ << "Loading color table: " << filename; | ||||
|    logger_->debug("Loading color table: {}", filename); | ||||
| 
 | ||||
|    std::shared_ptr<ColorTable> p = std::make_shared<ColorTable>(); | ||||
| 
 | ||||
|  | @ -167,8 +167,7 @@ std::shared_ptr<ColorTable> ColorTable::Load(const std::string& filename) | |||
|          } | ||||
|          catch (const std::exception&) | ||||
|          { | ||||
|             BOOST_LOG_TRIVIAL(warning) | ||||
|                << logPrefix_ << "Could not parse line: " << line; | ||||
|             logger_->warn("Could not parse line: {}", line); | ||||
|          } | ||||
|       } | ||||
|    } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat