Attention needed from Owners Override
Chris Suter has uploaded the change for review![Open in Gerrit]()
Chris Suter would like Owners Override to review this change.
Commit message
[syslog] Merge LogBuffer implementations
On Fuchsia, we had two LogBuffer implementations, one in
structured_backend and another one that wrapped it. This change merges
the two. The new one is placed in the fuchsia_logging namespace and we
have aliases in the other namespaces pointing at the merged one. For
host code, we preserve the existing implementation.
This change also includes some changes where we moved internal code into
the fuchsia_logging namespace. Eventually, we will get rid of the
fucshia_syslog and syslog_runtime namespaces.
There are two functional changes here:
1. Flushing LogBuffer directly will not check and filter based on
severity. Callers are responsible for checking the severity. This
change should be fine as there are few direct callers and, in some
cases, the severity was being checked erroneously.
2. Related to the previous change, if the severity is FATAL, the caller
is responsible for aborting the program.
This functional change is motivated by the fact that we want to separate
flushing of the buffer from the buffer. As we are moving away from
sockets, we want `connection.FlushBuffer(buffer)` rather than making the
buffer hold on to a temporary reference to the connection.
Bug: 377963307
Change-Id: Ie358bf7f93cc86939f4eb32379fe809f8bd5979b
Change information
Files:
- M sdk/lib/driver/logging/cpp/driver_logging_cpp.api
- M sdk/lib/driver/logging/cpp/internal/logger_internal.h
- M sdk/lib/driver/logging/cpp/logger.h
- M sdk/lib/syslog/cpp/BUILD.gn
- M sdk/lib/syslog/cpp/backend_fuchsia_globals.api
- M sdk/lib/syslog/cpp/host/encoder.h
- A sdk/lib/syslog/cpp/host/log_buffer.cc
- A sdk/lib/syslog/cpp/host/log_buffer.h
- M sdk/lib/syslog/cpp/host/logging_backend.cc
- M sdk/lib/syslog/cpp/log_message_impl.cc
- M sdk/lib/syslog/cpp/log_message_impl.h
- M sdk/lib/syslog/cpp/log_structure_unittest.cc
- M sdk/lib/syslog/cpp/logging_backend_fuchsia.cc
- M sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.cc
- M sdk/lib/syslog/cpp/logging_backend_fuchsia_globals.h
- M sdk/lib/syslog/cpp/logging_unittest.cc
- M sdk/lib/syslog/cpp/macros.h
- M sdk/lib/syslog/cpp/syslog_cpp.api
- M sdk/lib/syslog/structured_backend/BUILD.gn
- M sdk/lib/syslog/structured_backend/README.md
- M sdk/lib/syslog/structured_backend/cpp/fuchsia_syslog.h
- R sdk/lib/syslog/structured_backend/cpp/log_buffer.cc
- A sdk/lib/syslog/structured_backend/cpp/log_buffer.h
- M sdk/lib/syslog/structured_backend/syslog_structured_backend.api
- M src/connectivity/network/mdns/service/inspect.cc
- M src/devices/lib/log/log.cc
- M src/devices/lib/log/log.h
- M src/devices/testing/syslog/fuzz-sdk.cc
- M src/diagnostics/validator/logs/sink/puppet/cpp/puppet.cc
- M src/diagnostics/validator/logs/sink/puppet/sdk/puppet.cc
- M src/graphics/magma/lib/magma/platform/zircon/zircon_platform_logger_syslog.cc
- M src/lib/android/logging/override/logging.cc
Change size: XL
Delta: 32 files changed, 668 insertions(+), 606 deletions(-)
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ie358bf7f93cc86939f4eb32379fe809f8bd5979b
Gerrit-Change-Number: 1336164
Gerrit-PatchSet: 5
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
.