MCPcopy Create free account
hub / github.com/defold/defold / SetLogFile

Function SetLogFile

engine/dlib/src/dlib/log.cpp:569–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569bool SetLogFile(const char* path)
570{
571 if (g_LogFile) {
572 fclose(g_LogFile);
573 g_LogFile = 0;
574 }
575 g_LogFile = fopen(path, "wb");
576 if (g_LogFile) {
577 dmLogInfo("Writing log to: %s", path);
578 } else {
579 dmLogFatal("Failed to open log-file '%s'", path);
580 return false;
581 }
582 return true;
583}
584
585#if defined(_WIN32)
586

Callers 2

TESTFunction · 0.85
engine.cppFile · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68