|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Adapter that writes structured records to Android logcat. More...
#include <android_log_sink.hpp>


Public Types | |
| using | write_fn_t = void(*)(int priority, microfmt::string_view tag, microfmt::string_view message) noexcept |
Public Member Functions | |
| android_log_sink (microfmt::string_view tag="microfmt", write_fn_t write_fn=write_to_logcat) noexcept | |
| log_sink | as_sink () &noexcept RELOCO_LIFETIMEBOUND |
| void | log_impl (const log_msg &msg) noexcept |
Public Member Functions inherited from microfmt::log::detail::tagged_log_sink_base< TagCapacity > | |
| void | set_tag (microfmt::string_view tag) noexcept |
| Replaces the default tag used for records whose logger has no name, truncating to fit if necessary. | |
Additional Inherited Members | |
Protected Member Functions inherited from microfmt::log::detail::tagged_log_sink_base< TagCapacity > | |
| constexpr | tagged_log_sink_base () noexcept=default |
| tagged_log_sink_base (microfmt::string_view tag) noexcept | |
| microfmt::string_view | resolve_tag (microfmt::string_view logger_name, char(&scratch)[TagCapacity]) const &noexcept RELOCO_LIFETIMEBOUND |
Resolves the tag to use for a record whose originating logger is named logger_name: that name (truncated into scratch) if non-empty, otherwise this sink's configured default tag. | |
| microfmt::string_view | resolve_tag (microfmt::string_view logger_name, char(&scratch)[TagCapacity]) const &&=delete |
Protected Attributes inherited from microfmt::log::detail::tagged_log_sink_base< TagCapacity > | |
| char | tag_ [TagCapacity] {} |
| std::size_t | tag_size_ {0} |
Adapter that writes structured records to Android logcat.
| using microfmt::log::android_log_sink< MessageCapacity, TagCapacity >::write_fn_t = void (*)(int priority, microfmt::string_view tag, microfmt::string_view message) noexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |