Option to disable logging completely.

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
Fabian Sauter 2022-07-12 10:32:11 +02:00
parent 7bdde2e6f1
commit cf721cc21a
20 changed files with 86 additions and 57 deletions

View file

@ -40,8 +40,10 @@ Manager::Manager(uint32_t physicalDeviceIndex,
{
this->mManageResources = true;
// Make sure the logger is setup
// Make sure the logger is setup
#if !KOMPUTE_OPT_LOG_LEVEL_DISABLED
logger::setupLogger();
#endif
this->createInstance();
this->createDevice(
@ -58,8 +60,10 @@ Manager::Manager(std::shared_ptr<vk::Instance> instance,
this->mPhysicalDevice = physicalDevice;
this->mDevice = device;
// Make sure the logger is setup
// Make sure the logger is setup
#if !KOMPUTE_OPT_LOG_LEVEL_DISABLED
logger::setupLogger();
#endif
}
Manager::~Manager()