-
Notifications
You must be signed in to change notification settings - Fork 20
[MCC-128844] New logging in ZipkinTracerModule #42
Conversation
@@ -24,8 +25,9 @@ public void Init(HttpApplication context) | |||
var zipkinConfig = new ZipkinConfig(); | |||
|
|||
var traceProvider = new TraceProvider(new System.Web.HttpContextWrapper(HttpContext.Current), zipkinConfig.DontSampleListCsv, zipkinConfig.ZipkinSampleRate); | |||
var logger = new MDLogger(LogManager.GetLogger("ZipkinHttpModule"), traceProvider, new AssemblyLoader()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can work on getting this constructor piece better in the HttpModule in the refactor story.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor feedback, it might be better using LogManager.GetLogger(type)
.
And I published Medidata.MDLogging
version 0.0.3.0, please update the library!
@kenyamat |
@@ -24,8 +25,9 @@ public void Init(HttpApplication context) | |||
var zipkinConfig = new ZipkinConfig(); | |||
|
|||
var traceProvider = new TraceProvider(new System.Web.HttpContextWrapper(HttpContext.Current), zipkinConfig.DontSampleListCsv, zipkinConfig.ZipkinSampleRate); | |||
var logger = new MDLogger(LogManager.GetLogger(this.GetType().Name), traceProvider, new AssemblyLoader()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can pass Type
instance using this.GetType()
into GetLogger
. Sorry for minor feedback.
@kenyamat |
Thanks! |
[MCC-128844] New logging in ZipkinTracerModule
@BPONTES @kenyamat