Skip to content

Added custom formatting possibility#14

Merged
normj merged 1 commit intoaws:masterfrom
peterdeme:master
Jun 22, 2017
Merged

Added custom formatting possibility#14
normj merged 1 commit intoaws:masterfrom
peterdeme:master

Conversation

@peterdeme
Copy link
Copy Markdown

@peterdeme peterdeme commented Jun 1, 2017

Hi Spati2 & Norm & AWS Dev Team,

First of all, thank you for this great library. We just started to use it and it's great.

Although we are missing a functionality. For us, it's very important that we need to be able to customize the messages. For example: we need to have a transaction id injected to every one of our messages, and we want to see the LogLevel as well. This is very important to us, and this can be solved if we can provide our own formatter. Currently, unfortunately that is not possible.

ASP.NET Core (Kestrel, EF etc.) internally uses LogDebug, LogInformation, LogTrace etc. overloads of ILogger where the default formatter is getting applied. We want to format even the ASPNET Core internal logging messages, so in order to achieve this, the Log() overload needs to be customized like I did.

Thank you!
Peter

@spati2 spati2 self-assigned this Jun 4, 2017
@spati2
Copy link
Copy Markdown

spati2 commented Jun 5, 2017

Thanks for the PR @peterdeme. I will review this and get back to you

@peterdeme
Copy link
Copy Markdown
Author

Thanks @spati2

@peterdeme
Copy link
Copy Markdown
Author

Hi @spati2 , can this be reviewed? We are in kind of a hurry with this implementation.

@normj normj merged commit 3b64ca9 into aws:master Jun 22, 2017
@normj
Copy link
Copy Markdown
Member

normj commented Jun 22, 2017

Thanks for the pull request. I'll work on getting these changes released.

@peterdeme
Copy link
Copy Markdown
Author

Thanks @normj ! Appreciate it

@normj
Copy link
Copy Markdown
Member

normj commented Jun 22, 2017

I just pushed out version 1.2.0 of AWS.Logger.AspNetCore that has this pull request in it. Thanks again for the pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants