MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / logfile

Method logfile

crates/paths/src/server.rs:149–151  ·  view source on GitHub ↗

`date` should be in UTC.

(self, date: NaiveDate)

Source from the content-addressed store, hash-verified

147impl ModuleLogsDir {
148 /// `date` should be in UTC.
149 pub fn logfile(self, date: NaiveDate) -> ModuleLogPath {
150 ModuleLogPath(self.0.joined(format!("{date}.log")))
151 }
152
153 pub fn today(self) -> ModuleLogPath {
154 self.logfile(chrono::Utc::now().date_naive())

Callers 1

todayMethod · 0.80

Calls 1

joinedMethod · 0.80

Tested by

no test coverage detected