helper: Fix undefined behavior in Logger.cpp
helper: Fix undefined behavior in Logger.cpp

Creating an instance of TTYLogger at load time could lead to the use of
uninitialized global variables from console.h because the order in which
static variables are initialized in undefined.

This commit fixes this issue by initializing s_mainLogger lazily.


Former-commit-id: d08dd11cc7d3764125d183498a0e9ed689a9bade
Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,Anatoscope/sofa