This repository was archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 245
TraceSourceLoggerProvider > InitializeTraceSource is no use #141
Comments
davidfowl
added a commit
that referenced
this issue
Mar 5, 2015
- Moved TraceSourceLogger to Microsoft.Framework.Logging.TraceSource - Removed Logging dependency from all providers, they only need the .Interfaces reference - Moved WriteContext to the test project - Added an extension method AddTraceSource to add the TraceSource provider - Added AddLogging to the Logging project - Removed RootTraceName #142 #141 #140
Merged
? |
Why use TraceSource parentTraceSource = GetOrAddTraceSource(parentSourceName) ? |
What's the scenario you're trying to accomplish? The pattern here allows you to filter traces by prefix. It means that you can turn tracing on for Microsoft.AspNet and get all of the logs: http://www.tugberkugurlu.com/archive/logging-in-the-owin-world-with-microsoft-owin--introduction Check out this blog for an example. |
Oh, I see ! I forgot can configure the switch and listener in the web.config. Thank you very much! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The Listeners and Switchs always to the same with _rootSourceSwitch !!
https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Framework.Logging/TraceSourceLoggerProvider.cs#L16
The text was updated successfully, but these errors were encountered: