diff options
author | Andy Getzendanner <durandal@google.com> | 2022-05-05 08:42:47 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-05 08:43:24 -0700 |
commit | d3f0c70673ed71ba1581702bbbd0aa8865a575d1 (patch) | |
tree | d8c0ee9ce36137c126ec896637442c720819eaeb | |
parent | 173dfe4a4c70f294a512aae4d0d0f5fc7db39241 (diff) |
raw_logging: Document that AbortHook's buffers live for as long as the process remains alive.
PiperOrigin-RevId: 446725910
Change-Id: I291fa8c1c41155b1530969f64b2b7f44b1576c92
-rw-r--r-- | absl/base/internal/raw_logging.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/base/internal/raw_logging.h b/absl/base/internal/raw_logging.h index 68a8bf21..0747c9df 100644 --- a/absl/base/internal/raw_logging.h +++ b/absl/base/internal/raw_logging.h @@ -161,6 +161,9 @@ using LogFilterAndPrefixHook = bool (*)(absl::LogSeverity severity, // The NUL-terminated logged message lives in the buffer between 'buf_start' // and 'buf_end'. 'prefix_end' points to the first non-prefix character of the // buffer (as written by the LogFilterAndPrefixHook.) +// +// The lifetime of the filename and message buffers will not end while the +// process remains alive. using AbortHook = void (*)(const char* file, int line, const char* buf_start, const char* prefix_end, const char* buf_end); |