Skip to content

Commit

Permalink
Merge pull request #1212 from unoplatform/mergify/bp/release/stable/5…
Browse files Browse the repository at this point in the history
….6/pr-1210

fix: Initialize logging on WASM for blank template (backport #1210)
  • Loading branch information
jeromelaban authored Feb 3, 2025
2 parents cbe5767 + 07b7d5d commit 201573d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ static Application()
{
App.InitializeLogging();
}

#endif
//-:cnd:noEmit

public Application(IntPtr javaReference, JniHandleOwnership transfer)
: base(() => new App(), javaReference, transfer)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ public class Program

public static int Main(string[] args)
{
//+:cnd:noEmit
#if (!useDependencyInjection && useLoggingFallback)
App.InitializeLogging();

#endif
//-:cnd:noEmit
Microsoft.UI.Xaml.Application.Start(_ => _app = new App());

return 0;
Expand Down

0 comments on commit 201573d

Please sign in to comment.