Skip to content

Commit cdbe5b0

Browse files
committed
Add method RecordOwned::tid corresponds to Record::tid
1 parent 16e259e commit cdbe5b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spdlog/src/record.rs

+6
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ impl RecordOwned {
210210
self.inner.time
211211
}
212212

213+
/// Gets the TID when the record was created.
214+
#[must_use]
215+
pub fn tid(&self) -> u64 {
216+
self.inner.tid
217+
}
218+
213219
// When adding more getters, also add to `Record`
214220
}
215221

0 commit comments

Comments
 (0)