Skip to content

Use .NET Trace for logging purposes.#171

Merged
mariotoffia merged 1 commit into
mariotoffia:masterfrom
Diggzinc:master
Jun 11, 2021
Merged

Use .NET Trace for logging purposes.#171
mariotoffia merged 1 commit into
mariotoffia:masterfrom
Diggzinc:master

Conversation

@Diggzinc

Copy link
Copy Markdown
Contributor

Context

The following pull request moves the logging capabilities of the library to the Trace implementation in dotnet.

The previous code had issues regarding the configuration which were expressed on #170.

With this new implementation the logs generated by the library will now be available to the active Trace.Listeners which can then be routed to the logging framework of choice. For example, like this.

FAQ

Why Trace.WriteLine and not Debug.WriteLine?
In most implementations both will redirect to the Trace.Listeners but on netcoreapp2.0 the following error happens dotnet/runtime#26781

Checklist:

  • Develop unit tests
  • Update documentation
@Diggzinc Diggzinc marked this pull request as draft January 17, 2021 18:29
@Diggzinc Diggzinc marked this pull request as ready for review January 17, 2021 18:30
@Diggzinc

Copy link
Copy Markdown
Contributor Author

@mariotoffia Please tell me if for some reason the following pull request does not align with your vision on the topic.

@mariotoffia

Copy link
Copy Markdown
Owner

@Diggzinc Thanks for the PR! :) - I'll have a check tomorrow - need to do a another release tonight...

@migajek

migajek commented Jun 10, 2021

Copy link
Copy Markdown

hey, any updates on this one? it'd really be nice to have a working logger :)

@mariotoffia

Copy link
Copy Markdown
Owner

True, merging, thanks @Diggzinc for your contribution! :)

@mariotoffia mariotoffia merged commit ad5da20 into mariotoffia:master Jun 11, 2021
@mariotoffia

Copy link
Copy Markdown
Owner

@migajek and @Diggzinc it is on nuget version 2.10.7.

Cheers,
Mario :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants