Struct androidy_log::Writer [−][src]
pub struct Writer { /* fields omitted */ }
Expand description
Android log writer.
By default every write is buffer unless buffer overflow happens.
Buffered input is flushed on Drop
or via manual call.
Implementations
Creates new instance using default tag Rust
prio
- Logging priority.
Creates new instance using:
tag
- Log message tag, truncated to first 23 characters.prio
- Logging priority
Creates new instance with:
tag
- Log message’s tag as raw C string, that must be ending with 0. It is UB to pass anything else.prio
- Logging priority
Flushes internal buffer, if any data is available.
Namely it dumps stored data in buffer via __android_log_write
.
And resets buffered length to 0.
Writes supplied text to the buffer.
On buffer overflow, data is logged via __android_log_write
and buffer is filled with the rest of data
Trait Implementations
Writes a string slice into this writer, returning whether the write succeeded. Read more