enable static method
Implementation
static Future<DatadogLogging?> enable(
DatadogSdk core, DatadogLoggingConfiguration config) async {
if (_instance != null) {
core.internalLogger
.error('DatadogLogging is already enabled. Second call is ignored.');
return _instance;
}
DatadogLogging? logging;
await wrapAsync('logs.enable', core.internalLogger, null, () {
_platform.enable(core, config);
logging = DatadogLogging(core);
});
return logging;
}