7ba5584c2e
Also multiplex the service rather than the logger, so that we can multiplex a crash reporting instrumentation service with a file logging instrumentation service. Change-Id: I7720c55e26225c27d2d9447a0156b2ca83da6598 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122100 Commit-Queue: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
17 lines
630 B
Dart
17 lines
630 B
Dart
// Copyright (c) 2019, 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.
|
|
|
|
/// The interface used by client code to communicate with an instrumentation
|
|
/// server.
|
|
abstract class InstrumentationLogger {
|
|
/// Pass the given [message] to the instrumentation server so that it will be
|
|
/// logged with other messages.
|
|
///
|
|
/// This method should be used for most logging.
|
|
void log(String message);
|
|
|
|
/// Shut down this logger, including file handles etc.
|
|
Future<void> shutdown();
|
|
}
|