mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-26 22:03:35 -06:00
.ide Create logger for the long term TheIDE monitoring.
git-svn-id: svn://ultimatepp.org/upp/trunk@11002 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
800375b9fe
commit
a339ab6536
7 changed files with 174 additions and 23 deletions
|
|
@ -1,8 +1,6 @@
|
|||
#include "AndroidBuilder.h"
|
||||
|
||||
#define METHOD_NAME "AndroidModuleMakeFileCreator::" + String(__FUNCTION__) + "(): "
|
||||
#define ERROR_METHOD_NAME "[ERROR] " METHOD_NAME
|
||||
#define INFO_METHOD_NAME "[INFO] " METHOD_NAME
|
||||
#define METHOD_NAME "AndroidModuleMakeFileCreator::" << UPP_FUNCTION_NAME << "(): "
|
||||
|
||||
namespace Upp {
|
||||
|
||||
|
|
@ -71,18 +69,18 @@ bool AndroidModuleMakeFileCreator::Save(const String& path)
|
|||
{
|
||||
String directory = GetFileDirectory(path);
|
||||
if (!RealizeDirectory(directory)) {
|
||||
LOG(ERROR_METHOD_NAME + "Creating module directory failed \"" + directory + "\".");
|
||||
LoggerError() << METHOD_NAME << "Creating module directory failed \"" << directory << "\".";
|
||||
return false;
|
||||
}
|
||||
|
||||
String data = Create();
|
||||
if (FileExists(path) && LoadFile(path) == data) {
|
||||
LOG(INFO_METHOD_NAME + "Following file \"" + path + "\" content is the same as previous one.");
|
||||
LoggerInfo() << METHOD_NAME << "Following file \"" << path << "\" content is the same as previous one.";
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!SaveFile(path, Create())) {
|
||||
LOG(ERROR_METHOD_NAME + "Saving module file failed \"" + path + "\".");
|
||||
LoggerError() << METHOD_NAME << "Saving module file failed \"" << path << "\".";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue