DatadogLogger constructor

DatadogLogger({
  1. String? loggerName,
  2. bool bindOnRecord = true,
})

Implementation

DatadogLogger({
  this.loggerName,
  bool bindOnRecord = true,
}) {
  channel.invokeMethod('loggerCreateLogger', {
    'identifier': hashCode.toString(),
    'loggerName': loggerName,
  });
  if (bindOnRecord) Logger.root.onRecord.listen(onRecordCallback);
}