MCPcopy Create free account
hub / github.com/GCWing/BitFun / create_rotating_writer

Function create_rotating_writer

src/apps/cli/src/logging.rs:244–249  ·  view source on GitHub ↗
(
    session_log_dir: &Path,
    file_name: &str,
)

Source from the content-addressed store, hash-verified

242}
243
244fn create_rotating_writer(
245 session_log_dir: &Path,
246 file_name: &str,
247) -> std::io::Result<SharedRotatingWriter> {
248 RotatingFile::new(session_log_dir, file_name, MAX_LOG_FILE_SIZE).map(SharedRotatingWriter::new)
249}
250
251fn is_ai_target(target: &str) -> bool {
252 target.starts_with("ai")

Calls

no outgoing calls