ngworker / lumberjack

Chop and cut Angular logs like a professional lumberjack.

Home Page:https://ngworker.github.io/lumberjack/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request/refactor: use the `inject` function for dependencies

LayZeeDK opened this issue · comments

inject is more type-safe and should give no issue unless a class is created using its constructor instead of TestBed in test.

inject is better for base classes such as LumberjackLogger and ScopedLumberjackLogger to allow sub-classes to add their own dependencies to their constructor without having to pass the base class' dependencies if they so prefer.