comparison Core/Logging.cpp @ 1494:a13581480b1f

fix mingw build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Aug 2015 10:07:53 +0200
parents 596927722403
children fbe40117eb21
comparison
equal deleted inserted replaced
1493:9a1c7293955b 1494:a13581480b1f
187 const std::string& directory) 187 const std::string& directory)
188 { 188 {
189 boost::filesystem::path log, link; 189 boost::filesystem::path log, link;
190 GetLogPath(log, link, level, directory); 190 GetLogPath(log, link, level, directory);
191 191
192 printf("[%s]\n", log.string().c_str());
193
194 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) 192 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
195 boost::filesystem::remove(link); 193 boost::filesystem::remove(link);
196 boost::filesystem::create_symlink(log.filename(), link); 194 boost::filesystem::create_symlink(log.filename(), link);
197 #endif 195 #endif
198 196
199 file.reset(new std::ofstream(log.c_str())); 197 file.reset(new std::ofstream(log.string().c_str()));
200 stream = file.get(); 198 stream = file.get();
201 } 199 }
202 200
203 201
204 void Initialize() 202 void Initialize()