Files
sdk/pkg/analyzer/lib/instrumentation/logger.dart
T
Mike Fairhurst 7ba5584c2e [analysis_server] Fix outdated desin Service->Server, use Service->Logger.
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>
2019-11-04 21:31:26 +00:00

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();
}