No description
Find a file
2025-10-05 14:06:46 +03:00
cmaketools fix library 2025-10-05 14:06:46 +03:00
.gitignore add support build for win 2024-07-03 10:59:08 +03:00
.gitlab-ci.yml add support build for win 2024-07-03 10:59:08 +03:00
CMakeLists.txt add support build for win 2024-07-03 10:59:08 +03:00
exampleCode.gif add gifs 2020-12-22 09:17:36 +03:00
exampleGui.gif rename gif 2020-12-22 09:18:40 +03:00
exempleGui.gif add define 2021-09-20 14:56:01 +03:00
logmanager.cpp fix textedit 2021-10-26 10:56:00 +03:00
logmanager.h add support build for win 2024-07-03 10:59:08 +03:00
logo.png Загрузить новый файл 2020-12-22 10:24:42 +03:00
main.cpp fix temlplate 2022-03-15 17:01:16 +03:00
README.md fix temlplate 2022-03-15 17:01:16 +03:00

Вопрос: Для чего? Ответ: для более простой записи логов в html формате QPlainTextEdit, QTextEdit и QFile или другой QIODevice с разными цветами.
Вопрос: Как пользоваться?
Ответ: Очень просто (использование логера похоже на QDebug):

  1. локальное использование
    //..code...
    using namespace LM;
    Manager log;
    log.addPlainTextEdit(&pte); // добавить QPlainTextEdit если нужно
    //..code...
    log.addDevice(&fLog); // добавить QFile если нужно
    //..code...
    log << "Hello world";

  2. глобальное использование
    //..code...
    using namespace LM;
    Manager::instance(QObject*)->addPlainTextEdit(&pte);// указать родителя и добавить QPlainTextEdit если нужно
    //..code..
    Manager::instance()->addDevice(&fLog); // добавить QFile если нужно
    guiLog() << "Hello world"; // можно вызывать из любого учатка кода