Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Hosting logging needs to use structured logging instead of format strings #597

Closed
@Eilon

Description

@Eilon

E.g. here:

_cachedToString = $"Request finished in {_elapsed.TotalMilliseconds}ms {_httpContext.Response.StatusCode} {_httpContext.Response.ContentType}";

It's using a formatted string, which means that structured logging doesn't get to see what's in there. It also means that the formatting is being done in the current locale of the thread, which is unlikely to achieve the desired effect.

The logging calls need to instead use structured logging.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions