[BH-1688] Create a standard for logs

* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
This commit is contained in:
Lukasz Mastalerz
2023-10-10 08:47:37 +02:00
committed by Łukasz Mastalerz
parent a21736e3a6
commit d9a1194e6f
157 changed files with 506 additions and 463 deletions

View File

@@ -91,7 +91,7 @@ namespace gui
}
if (const auto pdata = dynamic_cast<SMSThreadData *>(data); pdata != nullptr) {
LOG_INFO("Thread data received: %" PRIu32, pdata->thread->ID);
LOG_DEBUG("Thread data received: %" PRIu32, pdata->thread->ID);
saveInfoAboutPreviousAppForProperSwitchBack(data);
smsModel->numberID = pdata->thread->numberID;
@@ -110,7 +110,7 @@ namespace gui
}
if (const auto pdata = dynamic_cast<SMSTextData *>(data); pdata != nullptr) {
LOG_INFO("received sms templates data");
LOG_DEBUG("Received sms templates data");
if (pdata->concatenate == SMSTextData::Concatenate::True) {
smsModel->smsInput->inputText->addText(pdata->text);
}