Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ internal bool GlobalLogEnabled

private static string GetDefaultLogDirectory()
{
var applicationMoniker = "elastic-otel-dotnet";
const string applicationMoniker = "elastic-otel-dotnet";

if (IsOSPlatform(OSPlatform.Windows))
return Path.Combine(GetFolderPath(SpecialFolder.ApplicationData), "elastic", applicationMoniker);

if (IsOSPlatform(OSPlatform.OSX))
return Path.Combine(GetFolderPath(SpecialFolder.LocalApplicationData), "elastic", applicationMoniker);

Expand All @@ -192,9 +194,9 @@ private static string GetDefaultLogDirectory()
/// <summary>
/// The default log directory if file logging was enabled but non was specified
/// <para>Defaults to: </para>
/// <para> - %PROGRAMDATA%\elastic\apm-agent-dotnet (on Windows)</para>
/// <para> - /var/log/elastic/apm-agent-dotnet (on Linux)</para>
/// <para> - ~/Library/Application_Support/elastic/apm-agent-dotnet (on OSX)</para>
/// <para> - %USERPROFILE%\AppData\Roaming\elastic\elastic-otel-dotnet (on Windows)</para>
/// <para> - /var/log/elastic/elastic-otel-dotnet (on Linux)</para>
/// <para> - ~/Library/Application Support/elastic/elastic-otel-dotnet (on OSX)</para>
/// </summary>
internal string LogDirectoryDefault { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static void LogDistroPreamble(this ILogger logger, SdkActivationMethod ac
logger.LogInformation("EDOT log file: <disabled>");
}

logger.LogInformation("Activation method: {ActivationMethod}", activationMethod.ToString());
logger.LogDebug("Activation method: {ActivationMethod}", activationMethod.ToString());

#if NET8_0
logger.LogDebug("Matched TFM: {TargetFrameworkMoniker}", "net8.0");
Expand Down