@@ -51,14 +51,14 @@ PM_STATUS(*pFunc_pmDiagnosticEnqueueMessage_)(const PM_DIAGNOSTIC_MESSAGE*) = nu
5151PM_STATUS (*pFunc_pmDiagnosticFreeMessage_)(PM_DIAGNOSTIC_MESSAGE*) = nullptr;
5252PM_DIAGNOSTIC_WAKE_REASON (*pFunc_pmDiagnosticWaitForMessage_)(uint32_t ) = nullptr;
5353PM_STATUS (*pFunc_pmDiagnosticUnblockWaitingThread_)() = nullptr;
54- PM_STATUS (*pFunc_pmSetupFileLogging_)(const char *, PM_DIAGNOSTIC_LEVEL,
55- PM_DIAGNOSTIC_LEVEL, bool ) = nullptr;
5654// pointers to runtime-resolved internal functions
5755_CrtMemState (*pFunc_pmCreateHeapCheckpoint__)() = nullptr;
5856LoggingSingletons (*pFunc_pmLinkLogging__)(std::shared_ptr<pmon::util::log::IChannel>,
5957 std::function<pmon::util::log::IdentificationTable&()>) = nullptr;
6058void (*pFunc_pmFlushEntryPoint__)() = nullptr ;
6159void (*pFunc_pmSetupODSLogging__)(PM_DIAGNOSTIC_LEVEL, PM_DIAGNOSTIC_LEVEL, bool ) = nullptr ;
60+ PM_STATUS (*pFunc_pmSetupFileLogging__)(const char *, PM_DIAGNOSTIC_LEVEL,
61+ PM_DIAGNOSTIC_LEVEL, bool ) = nullptr;
6262
6363
6464// internal loader state globals
@@ -169,12 +169,12 @@ PRESENTMON_API2_EXPORT PM_STATUS LoadLibrary_()
169169 RESOLVE (pmDiagnosticFreeMessage);
170170 RESOLVE (pmDiagnosticWaitForMessage);
171171 RESOLVE (pmDiagnosticUnblockWaitingThread);
172- RESOLVE (pmSetupFileLogging);
173172 // internal
174173 RESOLVE_CPP (pmCreateHeapCheckpoint_);
175174 RESOLVE_CPP (pmLinkLogging_);
176175 RESOLVE_CPP (pmFlushEntryPoint_);
177176 RESOLVE_CPP (pmSetupODSLogging_);
177+ RESOLVE_CPP (pmSetupFileLogging_);
178178 // if we make it here then we have succeeded
179179 middlewareLoadResult_ = PM_STATUS_SUCCESS;
180180 }
@@ -376,11 +376,12 @@ PRESENTMON_API2_EXPORT PM_STATUS pmDiagnosticUnblockWaitingThread()
376376 LoadEndpointsIfEmpty_ ();
377377 return pFunc_pmDiagnosticUnblockWaitingThread_ ();
378378}
379- PRESENTMON_API2_EXPORT PM_STATUS pmSetupFileLogging (const char * path, PM_DIAGNOSTIC_LEVEL logLevel,
379+
380+ PRESENTMON_API2_EXPORT PM_STATUS pmSetupFileLogging_ (const char * file, PM_DIAGNOSTIC_LEVEL logLevel,
380381 PM_DIAGNOSTIC_LEVEL stackTraceLevel, bool exceptionTrace)
381382{
382383 LoadEndpointsIfEmpty_ ();
383- return pFunc_pmSetupFileLogging_ (path , logLevel, stackTraceLevel, exceptionTrace);
384+ return pFunc_pmSetupFileLogging__ (file , logLevel, stackTraceLevel, exceptionTrace);
384385}
385386
386387
0 commit comments