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

Provide empty logger factory service. #34

Closed
wants to merge 1 commit into from
Closed

Provide empty logger factory service. #34

wants to merge 1 commit into from

Conversation

Tratcher
Copy link
Member

@Tratcher Tratcher commented May 6, 2014

#20

}
}

private class NullLongger : ILogger
Copy link
Contributor

Choose a reason for hiding this comment

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

NullLogger?

@Tratcher
Copy link
Member Author

Tratcher commented May 6, 2014

Fixed typo

@@ -47,6 +49,9 @@ public static IEnumerable<IServiceDescriptor> GetDefaultServices(IConfiguration

yield return describer.Transient<ITypeActivator, TypeActivator>();

// TODO: We expect this to be provide by the runtime eventually.
yield return describer.Instance<ILoggerFactory>(new NullLoggerFactory());
Copy link
Member

Choose a reason for hiding this comment

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

Should we let some folks know that they don't need to register this themselves? I think for now things like MusicStore and BugTracker do this themselves. @Praburaj @kirthik

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, as soon as it's checked in.

@davidfowl
Copy link
Member

:shipit:

@Tratcher
Copy link
Member Author

Tratcher commented May 7, 2014

Merged.

@Tratcher Tratcher closed this May 7, 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.

4 participants