Skip to content

Replace old style trace logging with correct Ilogger #3141

@marcschier

Description

@marcschier
  • pass iloggerfactory to classes requiring logging and create IIogger from the factory in each class that currently uses the Util.Tracexxx methods. Care should be taken to retain the current trace masks groups when naming the loggers if possible.
  • replace all calls to utils.trace methods with source generated log calls to Ilogger. Retain the trace levels as log levels where possible. Use structured logging throughout. Source generation pattern should be leveraging the extension method pattern with a extension class named [calling class name]Logging. A unique event id shall be assigned.
  • remove the old trace infrastructure
  • update all samples to pass a default logger factory if non is specified.

Metadata

Metadata

Assignees

Labels

Pending FeedbackPending on further feedbacks or clarification from person who create the issue.enhancementAPI or feature enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions