| 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 // Package bundler exports the Bundler interface and its implementation, as well |
| 6 // as supporting interfaces. |
| 7 // |
| 8 // A Bundler is responsible for efficiently buffering and clustering LogDog |
| 9 // Butler protobufs together for output. It is primarily focused on two |
| 10 // protobufs: |
| 11 // - The ButlerLogBundle_Entry, which represents a series of logs and |
| 12 // metadata belonging to a single stream. |
| 13 // - The LogEntry, which is a single chunk of unqualified log data. |
| 14 // |
| 15 // These protobufs comprise log data, and are grouped together for export in |
| 16 // a ButlerLogBundle protobuf. |
| 17 // |
| 18 // A ButlerLogBundle_Entry will be exported if it matches ANY of the following |
| 19 // conditions: |
| 20 // - It has attached log data. |
| 21 // - It has terminal information. |
| 22 // |
| 23 // Since LogDog outputs can be size-constrained, the Bundler tracks the expected |
| 24 // aggregate buffered protobuf size and, on export, breaks the buffered |
| 25 // protobufs into bundles along a size threshold boundary. |
| 26 package bundler |
| OLD | NEW |