Windoze logger (tested)
parent
b93ed4c6b7
commit
b6cc45acf3
|
@ -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" />
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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…
Reference in New Issue