Provide with_log_buffer() function

The goal is to make it easier to update the 3p android_logger crate.

This adds the upstream with_log_buffer() function. Android currently
carries a local patch which provides the same functionality under a
different name - with_log_id(). This is a temporary addition to allow
updating individual parts of the platform to match the upstream
crate to make the android_logger update more seemless. Normally we
would update everything in one topic, but the number of changes is
so large that this makes it simpler to get individual changes in.

Bug: 322718401
Test: build and run CF with the change.
Test: m aosp_cf_x86_64_phone
Change-Id: Icc63571d640cad0a0580e574df56853288380442
diff --git a/src/lib.rs b/src/lib.rs
index c2a3c08..b35db3f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -288,6 +288,17 @@
         self
     }
 
+    /// Changes the Android logging system buffer to be used.
+    ///
+    /// By default, logs are sent to the [`Main`] log. Other logging buffers may
+    /// only be accessible to certain processes.
+    ///
+    /// [`Main`]: LogId::Main
+    pub fn with_log_buffer(mut self, buf_id: LogId) -> Self {
+        self.log_id = Some(buf_id);
+        self
+    }
+
     fn filter_matches(&self, record: &Record) -> bool {
         if let Some(ref filter) = self.filter {
             filter.matches(record)