Commit 614a118a authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

cout cerr

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64786 954022d7-b5bf-4e40-9824-e11837661b57
parent 65c4f895
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include "../xml/include/xmlutils.h" #include "../xml/include/xmlutils.h"
#include <iostream>
void CreateNativeObject(const v8::FunctionCallbackInfo<v8::Value>& args) void CreateNativeObject(const v8::FunctionCallbackInfo<v8::Value>& args)
{ {
v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8::Isolate* isolate = v8::Isolate::GetCurrent();
...@@ -244,6 +246,7 @@ namespace NSDoctRenderer ...@@ -244,6 +246,7 @@ namespace NSDoctRenderer
void _LOGGING_ERROR_(const std::wstring& strType, const std::wstring& strError) void _LOGGING_ERROR_(const std::wstring& strType, const std::wstring& strError)
{ {
#if 0
if (m_sErrorsLogFile.empty()) if (m_sErrorsLogFile.empty())
return; return;
...@@ -257,6 +260,11 @@ namespace NSDoctRenderer ...@@ -257,6 +260,11 @@ namespace NSDoctRenderer
fprintf(f, sE.c_str()); fprintf(f, sE.c_str());
fprintf(f, "\n"); fprintf(f, "\n");
fclose(f); fclose(f);
#endif
std::string sT = NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strType);
std::string sE = NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strError);
std::cerr << sT << ": " << sE << std::endl;
} }
bool Doct_renderer_SaveFile(CExecuteParams* pParams, bool Doct_renderer_SaveFile(CExecuteParams* pParams,
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "memorystream.h" #include "memorystream.h"
#include <map> #include <map>
#include "../fontengine/ApplicationFonts.h" #include "../fontengine/ApplicationFonts.h"
#include <iostream>
// string convert // string convert
static std::wstring to_cstring(v8::Local<v8::Value> v) static std::wstring to_cstring(v8::Local<v8::Value> v)
...@@ -146,6 +147,7 @@ public: ...@@ -146,6 +147,7 @@ public:
void ConsoleLog(/*UTF8*/const std::string& strVal) void ConsoleLog(/*UTF8*/const std::string& strVal)
{ {
#if 0
if (!m_sConsoleLogFile.empty()) if (!m_sConsoleLogFile.empty())
{ {
FILE* f = NSFile::CFileBinary::OpenFileNative(m_sConsoleLogFile, L"a+"); FILE* f = NSFile::CFileBinary::OpenFileNative(m_sConsoleLogFile, L"a+");
...@@ -153,6 +155,8 @@ public: ...@@ -153,6 +155,8 @@ public:
fprintf(f, "\n"); fprintf(f, "\n");
fclose(f); fclose(f);
} }
#endif
std::cout << strVal << std::endl;
} }
void CheckFonts() void CheckFonts()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment