-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to ts #3
Conversation
src/LoggerFactory.ts
Outdated
@@ -0,0 +1,19 @@ | |||
import ConsoleLogger from './adapters/ConsoleLogger'; | |||
import AbstractLogger from './AbstractLogger'; |
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.
Why have an AbstractLogger
AND a ConsoleLogger
if we're going to be dependent on both? The actual logger implementation should be dependency-injected at construction-time. Otherwise it doesn't make much sense to have it split into an "abstract" class and an implementation class.
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.
Done, removed the redundant explicit return type.
No description provided.