MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / tag

Method tag

crates/opencode-util/src/logging.rs:164–172  ·  view source on GitHub ↗
(&self, key: &str, value: &str)

Source from the content-addressed store, hash-verified

162 }
163
164 pub fn tag(&self, key: &str, value: &str) -> TaggedLogger {
165 let mut tags = self.tags.clone();
166 tags.insert(key.to_string(), value.to_string());
167 TaggedLogger {
168 tags,
169 writer: Arc::clone(&self.writer),
170 level: self.level,
171 }
172 }
173}
174
175pub struct TaggedLogger {

Callers 1

build_snapshot_diffFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected