getInstance method
Returns a specific instance of a CloudWatch class (or null if it doesn't exist) based on group name and stream name
Uses the logGroupName and the logStreamName to find the correct
CloudWatch instance. Returns null if it doesn't exist
Implementation
CloudWatch? getInstance({
required String logGroupName,
required String logStreamName,
}) {
final Logger? cw = _handler.getInstance(
logGroupName: logGroupName,
logStreamName: logStreamName,
);
if (cw != null) {
return CloudWatch._(cw);
}
return null;
}