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

Exceptions aren't logged by EventLogger (dev branch) #375

Closed
fubar-coder opened this issue Mar 1, 2016 · 11 comments
Closed

Exceptions aren't logged by EventLogger (dev branch) #375

fubar-coder opened this issue Mar 1, 2016 · 11 comments
Assignees
Milestone

Comments

@fubar-coder
Copy link

It seems that in commit 4528bdb, the MessageFormatter helper function in LoggerExtensions.cs was changed to not include the exception. The ConsoleLogger logs the exception by itself, but the EventLogger doesn't.

@muratg
Copy link

muratg commented Mar 3, 2016

@BrennanConroy could you take a look?

@BrennanConroy
Copy link
Member

This was an intentional change
@lodejard

@fubar-coder
Copy link
Author

It was an intentional change that the exception is not included in the event log?

@lodejard
Copy link
Contributor

lodejard commented Mar 3, 2016

Sure, the Exception.ToString should be added to the body. Might want to have two newlines between the message and the exception for readability.

@fubar-coder
Copy link
Author

That would cause the ConsoleLogger to output the exception twice - which is not really useful/wanted.

@muratg
Copy link

muratg commented Mar 3, 2016

@lodejard did you mean EventLog logger should be changed to include Exception.ToString()?

@lodejard
Copy link
Contributor

lodejard commented Mar 3, 2016

Yes

@muratg muratg added the bug label Mar 3, 2016
@muratg muratg added this to the 1.0.0-rc2 milestone Mar 3, 2016
@fubar-coder
Copy link
Author

Then I misunderstood you. I'm sorry.

@lodejard
Copy link
Contributor

lodejard commented Mar 3, 2016

No problem, what I wrote could have meant either thing. :)

@lodejard
Copy link
Contributor

lodejard commented Mar 3, 2016

So we were both right :D

@BrennanConroy
Copy link
Member

6b07c6a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants