The problem, as it turned out, was that I explicitly added Console Logger. Logging in webassembly is supported by internal logger, as stated in the documentation:
Logging is supported in client-side apps after the WebAssemblyHostBuilder is built using the framework's internal console logger provider (WebAssemblyConsoleLoggerProvider
(reference source)).