Fix potential initialization order problem


The logging category is now declared as a function (see the macro
definition) rather than as a plain static, which should prevent
potential initialization order issues.

Pick-to: 6.2
Task-number: QTBUG-68383
Change-Id: Ib71fd7a3840b2dda186c2a06205d781acc389135
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
commit63fe6819c79c835adf652f8dd99fda54f6d35cdc
parentdcf80c8bc52d8c74cb20c1e42abfd85d7eb89aef
authorJuha Vuolle <juha.vuolle@insta.fi>
committerJuha Vuolle <juha.vuolle@insta.fi>
commit timeWed, 18 Aug 2021 16:15:02 +0300