Browse Source

Windoze logger (tested)

JSON-153_experimental
Volker Birk 2 years ago
parent
commit
b6cc45acf3
3 changed files with 7 additions and 3 deletions
  1. +3
    -2
      build-windows/pEpJSONServerAdapter/pEpJSONServerAdapterLibrary.vcxproj
  2. +3
    -0
      build-windows/pEpJSONServerAdapter/pEpJSONServerAdapterLibrary.vcxproj.filters
  3. +1
    -1
      server/logger.cc

+ 3
- 2
build-windows/pEpJSONServerAdapter/pEpJSONServerAdapterLibrary.vcxproj View File

@ -55,7 +55,7 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_LIB;DEBUG_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>JSON_ADAPTER_LIBRARY;DEBUG_ENABLED;WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_LIB;DEBUG_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)pEpJSONServerAdapter\build-windows\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
@ -75,7 +75,7 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>JSON_ADAPTER_LIBRARY;DEBUG_ENABLED;WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)pEpJSONServerAdapter\build-windows\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
@ -90,6 +90,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\..\server\adapter-library.hh" />
<ClInclude Include="..\..\server\base64.hh" />
<ClInclude Include="..\..\server\context.hh" />
<ClInclude Include="..\..\server\c_string.hh" />


+ 3
- 0
build-windows/pEpJSONServerAdapter/pEpJSONServerAdapterLibrary.vcxproj.filters View File

@ -111,6 +111,9 @@
<ClInclude Include="..\..\server\session_registry.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\server\adapter-library.hh">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\server\server_version.cc">


+ 1
- 1
server/logger.cc View File

@ -54,7 +54,7 @@ namespace LoggerS // namespace containing all data for the Logger singleton. HA
#ifndef WIN32
LoggerS::filename = filename.empty() ? "/tmp/log-" + program_name + ".log" : filename;
#else // WIN23
LoggerS::filename = filename.empty() ? std::string(_getenv("TEMP"))
LoggerS::filename = filename.empty() ? std::string(getenv("TEMP"))
+ "\\log-" + program_name + ".log" : filename;
#endif
openfile();


Loading…
Cancel
Save