easylogging++: ensure logger is initialized before main
This commit is contained in:
parent
9b69a0ae01
commit
ab783b1700
|
@ -2202,6 +2202,7 @@ el::base::type::StoragePointer el::base::Storage::getELPP()
|
||||||
{
|
{
|
||||||
return getresetELPP(false);
|
return getresetELPP(false);
|
||||||
}
|
}
|
||||||
|
static struct EnsureELPP { EnsureELPP() { el::base::Storage::getELPP(); } } ensureELPP;
|
||||||
#if ELPP_ASYNC_LOGGING
|
#if ELPP_ASYNC_LOGGING
|
||||||
Storage::Storage(const LogBuilderPtr& defaultLogBuilder, base::IWorker* asyncDispatchWorker) :
|
Storage::Storage(const LogBuilderPtr& defaultLogBuilder, base::IWorker* asyncDispatchWorker) :
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue