Skip to content

Commit

Permalink
Make example work in the web
Browse files Browse the repository at this point in the history
Relates to #1
  • Loading branch information
ricardoboss committed Mar 20, 2024
1 parent d7fd1cd commit 87eff7f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions example/main.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import 'dart:io';

import 'package:dart_seq/dart_seq.dart';

Future<void> main() async {
final logger = SeqLogger.http(
host: 'http://localhost:5341',
globalContext: {
'Environment': Platform.environment,
'App': 'Example',
},
);

await logger.log(SeqLogLevel.information, 'test, dart: {Dart}', null, {
'Dart': Platform.version,
await logger.log(SeqLogLevel.information, 'test, logged at: {Timestamp}', null, {
'Timestamp': DateTime.now().toUtc().toIso8601String(),
});

await logger.flush();
Expand Down

0 comments on commit 87eff7f

Please sign in to comment.