injectLogger function
Get a logger from the provider.
id
is an arbitrary parameter, and different Logger implementations will handle it differently.
If there is no provider, returned logger will be a DummyLogger
.
Implementation
LazyLogger injectLogger(String id) {
return LazyLogger(
id, () => Zone.current[_pubnubLoggerModuleKey] ?? DummyLogger());
}