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

Switch InnerAttributeRoute to log at Debug level, or make it configurable #2996

Closed
rynowak opened this issue Aug 19, 2015 · 3 comments
Closed
Assignees
Milestone

Comments

@rynowak
Copy link
Member

rynowak commented Aug 19, 2015

From @timothy-shields - moved from aspnet/Routing#202

I'm using 1.0.0-beta6. Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute logs an awful lot at the info level. For example, when logging to console I get this kind of message every time a request hits my service:

info    : [Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute] Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'

Is there a way I can disable this? Or modify the level at which the InnerAttributeRoute logs?

@rynowak
Copy link
Member Author

rynowak commented Aug 19, 2015

Yeah, you're right, we should change this.

@rynowak
Copy link
Member Author

rynowak commented Aug 19, 2015

As for disabling it, you can filter out the category Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute by whatever mechanism your logging system supports.

@danroth27 danroth27 added this to the 6.0.0-beta8 milestone Aug 19, 2015
@rynowak
Copy link
Member Author

rynowak commented Aug 19, 2015

e61ebca

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

2 participants