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

[Design] Clean up logging. #2344

Merged
merged 1 commit into from
Apr 13, 2015
Merged

[Design] Clean up logging. #2344

merged 1 commit into from
Apr 13, 2015

Conversation

kichalla
Copy link
Member

@kichalla kichalla commented Apr 6, 2015

  • Removing scopes as we want to limit the number of scopes being created.
  • Added new log statements using the new log format string.

Please note: I have not yet modified the tests to reflect these changes. Will update them once the design looks ok.

Related PR in routing which has been updated: aspnet/Routing#172

/cc: @rynowak

@ghost ghost added the cla-not-required label Apr 6, 2015
Environment.NewLine,
finalMatches.Select(a => a.DisplayName));
_logger.LogError(
$"Request matched multiple actions resulting in ambiguity. Matching actions: {actionNames}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use $ - let logging handle it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this still here?

@kichalla kichalla force-pushed the kiran/logging-cleanup branch 6 times, most recently from a55e2cf to 7c2538a Compare April 8, 2015 17:30
@@ -9,10 +9,25 @@ namespace Microsoft.AspNet.Mvc
{
public class ActionDescriptor
{
private readonly Guid _guid;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe save the string instead of the GUID?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kichalla kichalla force-pushed the kiran/logging-cleanup branch from af124cb to d00db54 Compare April 9, 2015 05:38
public ActionDescriptor()
{
Properties = new Dictionary<object, object>();
RouteValueDefaults = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
_guid = Guid.NewGuid().ToString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use _id or the Id property directly.

@rynowak
Copy link
Member

rynowak commented Apr 13, 2015

@kichalla kichalla force-pushed the kiran/logging-cleanup branch 3 times, most recently from aa959aa to e25ab19 Compare April 13, 2015 22:23
@kichalla
Copy link
Member Author

Updated. /cc: @rynowak

@rynowak
Copy link
Member

rynowak commented Apr 13, 2015

:shipit:

- Removing scopes as we want to limit the number of scopes being created.
- Added new log statements using the new log format string.
@kichalla kichalla force-pushed the kiran/logging-cleanup branch from e25ab19 to 24b930f Compare April 13, 2015 23:05
@kichalla kichalla merged commit 24b930f into dev Apr 13, 2015
@kichalla kichalla deleted the kiran/logging-cleanup branch April 20, 2015 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants