MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / set_file

Method set_file

smallthinker/common/log.cpp:295–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 void set_file(const char * path) {
296 pause();
297
298 if (file) {
299 fclose(file);
300 }
301
302 if (path) {
303 file = fopen(path, "w");
304 } else {
305 file = nullptr;
306 }
307
308 resume();
309 }
310
311 void set_colors(bool colors) {
312 pause();

Callers 1

common_log_set_fileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected