6a6b9ac2bf
Remove use of svg, use unicode characters instead. Run dart format on observatory sources. Sort import statements with import_sorter. No functional changes. TEST=ci, manual Change-Id: I7e4f67be06a27c8ab510ae8e50ce30b162780d30 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426683 Commit-Queue: Alexander Aprelev <aam@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
20 lines
708 B
Dart
20 lines
708 B
Dart
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:web/web.dart';
|
|
import 'package:logging/logging.dart';
|
|
import 'package:observatory/elements.dart';
|
|
import 'package:stack_trace/stack_trace.dart';
|
|
|
|
main() async {
|
|
Chain.capture(() async {
|
|
Logger.root.level = Level.INFO;
|
|
Logger.root.onRecord.listen((LogRecord rec) {
|
|
print('${rec.level.name}: ${rec.time}: ${rec.message}');
|
|
});
|
|
Logger.root.info('Starting Observatory');
|
|
document.body!.append(ObservatoryApplicationElement.created().element);
|
|
});
|
|
}
|