OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module mojo.log; |
| 6 |
| 7 import "log/interfaces/entry.mojom"; |
| 8 |
| 9 // A log interface provides a way to do log source-code-level message entries. |
| 10 // For example, this could be log messages generated from calling MOJO_LOG() in |
| 11 // C++. |
| 12 // TODO(vardhan): How do we "globally silence" log entries issued by many |
| 13 // consumers of this interface? Should |Log| provide controls for log levels? |
| 14 // or should clients register a "LogClientController" with this interface, and |
| 15 // |Log| will control their log levels? |
| 16 interface Log { |
| 17 AddEntry(Entry entry); |
| 18 }; |
OLD | NEW |