Skip to content

Commit

Permalink
http sink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapavy committed Feb 5, 2024
1 parent b1e52f9 commit 4caf39e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/SerilogEcsLogging/Logging/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public static class HostBuilderExtensions

public static bool RunningInContainer => string.Equals(Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER"), "true", StringComparison.InvariantCultureIgnoreCase);

public static IHostBuilder UseSerilogEvents(this IHostBuilder builder, Action<HostBuilderContext, LoggerConfiguration>? configureLogger = null, bool logEcsEvents = true, bool logToConsole = true, bool consoleToStdErr = false, string? logFilePath = null)
public static IHostBuilder UseSerilogEvents(this IHostBuilder builder, Action<HostBuilderContext, LoggerConfiguration>? configureLogger = null, bool logEcsEvents = true, bool logToConsole = true, bool consoleToStdErr = false, string? logFilePath = null, string? httpEndpoint = null, TimeSpan? httpPostPeriod = null, int? logEventsInHttpBatchLimit = 1000)
{
return builder.UseSerilog((context, configuration) => {
configuration.ConfigureEcs(logEcsEvents, logToConsole, consoleToStdErr, logFilePath);
configuration.ConfigureEcs(logEcsEvents, logToConsole, consoleToStdErr, logFilePath, httpEndpoint, httpPostPeriod, logEventsInHttpBatchLimit);
configuration.ReadFrom.Configuration(context.Configuration);
configureLogger?.Invoke(context, configuration);
});
Expand Down
2 changes: 1 addition & 1 deletion src/SerilogEcsLogging/SerilogEcsLogging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>mrapavy</Authors>
<PackageProjectUrl>https://github.com/mrapavy/serilog-ecs-logging</PackageProjectUrl>
<Version>1.1.7</Version>
<Version>1.1.8</Version>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

Expand Down

0 comments on commit 4caf39e

Please sign in to comment.