Skip to content

No output to console. #12

@VictorioBerra

Description

@VictorioBerra
        Log.Logger = new LoggerConfiguration()
            .MinimumLevel.Debug()
            .Enrich.WithProperty("Application", "MyApp")
            .WriteTo.SpectreConsole()
            .WriteTo.EventCollector(
                // ...
            )
            .CreateLogger();

        Log.Information("Hello World");

        await Log.CloseAndFlushAsync();

I see Hello World in Splunk, but console never displays it.

  • net9.0
    <PackageReference Include="Serilog.Sinks.SpectreConsole" Version="0.3.3" />
    <PackageReference Include="Serilog.Sinks.Splunk" Version="5.1.0" />
    <PackageReference Include="Spectre.Console" Version="0.50.0" />
    <PackageReference Include="Spectre.Console.Cli" Version="0.50.0" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions