Skip to content

Commit

Permalink
Merge pull request #1210 from unoplatform/dev/mazi/logging-wasm
Browse files Browse the repository at this point in the history
fix: Initialize logging on WASM for blank template
  • Loading branch information
jeromelaban authored Feb 3, 2025
2 parents e23a1d5 + e550c5a commit aad38d9
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 aad38d9

Please sign in to comment.