Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

[MCC-128844] New logging in ZipkinTracerModule #42

Merged
merged 4 commits into from
Oct 1, 2014
Merged

Conversation

tkwan-mdsol
Copy link
Contributor

@BPONTES @kenyamat

  1. pass in IMDLogger from constructor
  2. implement logging in ZipkinClient

@@ -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());
Copy link
Contributor Author

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.

Copy link
Contributor

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!

@tkwan-mdsol
Copy link
Contributor Author

@kenyamat
Changes made. Thank you!

@@ -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());
Copy link
Contributor

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.

@tkwan-mdsol
Copy link
Contributor Author

@kenyamat
Oh yes, sorry about that.

@kenyamat
Copy link
Contributor

kenyamat commented Oct 1, 2014

Thanks!

kenyamat added a commit that referenced this pull request Oct 1, 2014
[MCC-128844]  New logging in ZipkinTracerModule
@kenyamat kenyamat merged commit 8cc12e7 into develop Oct 1, 2014
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.

2 participants