mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-14 02:26:50 -07:00
Migrate TraceLogger to runtime class (#772)
This commit is contained in:
parent
8ba7234550
commit
577aafb3f4
15 changed files with 97 additions and 100 deletions
|
@ -97,7 +97,7 @@ void App::AddWindowToMap(_In_ WindowFrameService ^ frameService)
|
|||
{
|
||||
reader_writer_lock::scoped_lock lock(m_windowsMapLock);
|
||||
m_secondaryWindows[frameService->GetViewId()] = frameService;
|
||||
TraceLogger::GetInstance().UpdateWindowCount(m_secondaryWindows.size());
|
||||
TraceLogger::GetInstance()->UpdateWindowCount(m_secondaryWindows.size());
|
||||
}
|
||||
|
||||
WindowFrameService ^ App::GetWindowFromMap(int viewId)
|
||||
|
@ -363,7 +363,7 @@ void App::OnAppLaunch(IActivatedEventArgs ^ args, String ^ argument)
|
|||
}
|
||||
else
|
||||
{
|
||||
TraceLogger::GetInstance().LogError(ViewMode::None, L"App::OnAppLaunch", L"Null_ActivationViewSwitcher");
|
||||
TraceLogger::GetInstance()->LogError(ViewMode::None, L"App::OnAppLaunch", L"Null_ActivationViewSwitcher");
|
||||
}
|
||||
}
|
||||
// Set the preLaunched flag to false
|
||||
|
@ -439,7 +439,7 @@ void App::OnActivated(IActivatedEventArgs ^ args)
|
|||
|
||||
void CalculatorApp::App::OnSuspending(Object ^ sender, SuspendingEventArgs ^ args)
|
||||
{
|
||||
TraceLogger::GetInstance().LogButtonUsage();
|
||||
TraceLogger::GetInstance()->LogButtonUsage();
|
||||
}
|
||||
|
||||
void App::DismissedEventHandler(SplashScreen ^ sender, Object ^ e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue