@ -171,7 +171,7 @@ int main(int argc, char *argv[])
boost::filesystem::ofstream logfile;
// Redirect cout and cerr to openmw.log
cout << Log::copyOldLog(cfgMgr.getLogPath(), "server", "log") << endl;
cout << Log::renameOldLog(cfgMgr.getLogPath(), "server", "log") << endl;
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/server.log"));
@ -335,7 +335,7 @@ int main(int argc, char**argv)
std::cerr.rdbuf (&sb);
#else
Log::copyOldLog(cfgMgr.getLogPath(), "openmw", "log");
Log::renameOldLog(cfgMgr.getLogPath(), "openmw", "log");
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
coutsb.open (Tee(logfile, oldcout));
@ -106,7 +106,7 @@ void Log::print(int level, bool hasPrefix, const char *file, int line, const cha
cout << buf.data() << flush;
}
string Log::copyOldLog(boost::filesystem::path path, string name, string extension)
string Log::renameOldLog(boost::filesystem::path path, string name, string extension)
{
namespace fs = boost::filesystem;
fs::directory_iterator end_iter;
@ -47,7 +47,7 @@ public:
static void SetLevel(int level);
void print(int level, bool hasPrefix, const char *file, int line, const char *message, ...) const;
static std::string copyOldLog(boost::filesystem::path path, std::string name, std::string extension);
static std::string renameOldLog(boost::filesystem::path path, std::string name, std::string extension);
private:
Log(int logLevel);
/// Not implemented