Skip to content

Additional line breaks in console output when using serilog console sink #557

@jSharpWolf

Description

@jSharpWolf

What happened?

If a project uses the Serilog console sink (no matter which version) and you run the project in Rider (Run, not debug) then the output in Aspire as well as in the IDE has line-breaks everywhere, making the logs unreadable.

Running the project outside of rider does not have this issue

Steps to reproduce

  1. Create a new project that logs using the Serilog Console sink (package = Serilog.Sinks.Console)
  2. Write a log statement in the project
  3. Add the project dependency to the aspire host
  4. Run the host
  5. Line breaks everywhere

Expected behavior

No line breaks

JetBrains Rider version

2025.3.0.1

.NET Aspire plugin version

1.9.5

.NET Aspire version

13.0.0

.NET version

9.0

Operating System

Windows

Link to a test project to reproduce the bug

Repro repository

Additional context

In this reproduction example it's also broken when debugging, however in some of my other customer solution it's working when debugging.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions