Index: runtime/vm/service.h |
diff --git a/runtime/vm/service.h b/runtime/vm/service.h |
index 9e25340389b6941a1fc7fe9787163c4024211274..3b23f6d553bd7c0902311de5a7f3bc4d0733ec1e 100644 |
--- a/runtime/vm/service.h |
+++ b/runtime/vm/service.h |
@@ -108,12 +108,23 @@ class Service : public AllStatic { |
const uint8_t* bytes, |
intptr_t bytes_len); |
+ static void SendLogEvent(Isolate* isolate, |
+ int64_t sequence_number, |
+ int64_t timestamp, |
+ intptr_t level, |
+ const String& name, |
+ const String& message, |
+ const Instance& zone, |
+ const Object& error, |
+ const Instance& stack_trace); |
+ |
// Well-known streams. |
static StreamInfo isolate_stream; |
static StreamInfo debug_stream; |
static StreamInfo gc_stream; |
static StreamInfo echo_stream; |
static StreamInfo graph_stream; |
+ static StreamInfo logging_stream; |
static bool ListenStream(const char* stream_id); |
static void CancelStream(const char* stream_id); |
@@ -137,6 +148,7 @@ class Service : public AllStatic { |
static void SendEvent(const char* stream_id, |
const char* event_type, |
const Object& eventMessage); |
+ |
// Does not take ownership of 'data'. |
static void SendEventWithData(const char* stream_id, |
const char* event_type, |
@@ -144,6 +156,10 @@ class Service : public AllStatic { |
const uint8_t* data, |
intptr_t size); |
+ static void PostEvent(const char* stream_id, |
+ const char* kind, |
+ JSONStream* event); |
+ |
static EmbedderServiceHandler* isolate_service_handler_head_; |
static EmbedderServiceHandler* root_service_handler_head_; |
static Dart_ServiceStreamListenCallback stream_listen_callback_; |