Skip to content

Commit 2eef265

Browse files
authored
Merge pull request #18 Fix location of logs files for native profiler
2 parents e62b6ee + 7decc40 commit 2eef265

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Shared-Src/Native/logging.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ namespace shared {
149149
{
150150
program_data = R"(C:\ProgramData)";
151151
}
152-
153-
return std::filesystem::path(program_data);
152+
153+
return std::filesystem::path(program_data) / R"(Datadog-APM\logs\DotNet)";
154154
#else
155155
return std::filesystem::path("/var/log/datadog/dotnet");
156156
#endif
@@ -174,9 +174,6 @@ namespace shared {
174174
}
175175

176176
std::filesystem::path log_directory_path = GetProductBaseDirectoryPath();
177-
#ifdef _WIN32
178-
log_directory_path /= TLoggerPolicy::folder_path;
179-
#endif
180177
return ToString((log_directory_path / log_file_name).native());
181178
}
182179

0 commit comments

Comments
 (0)