Go to file
2023-05-27 10:38:17 +07:00
example Add target builder and more options 2023-05-27 09:47:24 +07:00
lib Updated options 2023-05-27 10:38:17 +07:00
test Add target builder and more options 2023-05-27 09:47:24 +07:00
.gitignore Add collect the logs 2023-05-27 01:06:18 +07:00
analysis_options.yaml Rename CollectorRequest->Collector and add extras to target 2023-05-27 09:04:53 +07:00
CHANGELOG.md Add collect the logs 2023-05-27 01:06:18 +07:00
pubspec.yaml Rename CollectorRequest->Collector and add extras to target 2023-05-27 09:04:53 +07:00
README.md Updated README 2023-05-27 09:50:12 +07:00

vLogs SDK for Dart

A simple way to collect logs and send to the server via simple SDK.

  • Collect the logs
  • Support local retries

Usages

import 'package:vlogs/vlogs.dart';

void main() async {
  final APP_ID = "xxx";
  final API_KEY = "vlogs_xxx";

  final sdk = VLogs.createWith(APP_ID, API_KEY);

  var request = Collector.builder()
      .message("Hello World")
      .source(CollectorSource.mobile.name)
      .type(CollectorType.log.name)
      .build();

  var response = await sdk.collect(request);
  print("Response: ${response.toJson()}");
}

Contributors