MEONMedical / Log4Qt

Log4Qt - Logging for the Qt cross-platform application framework
Apache License 2.0
589 stars 235 forks source link

Modify LogManager::qtLogger. Add Qt category paramter. QLoggingCatego… #76

Open KangLin opened 2 years ago

KangLin commented 2 years ago

Modify LogManager::qtLogger. Add Qt category paramter. QLoggingCategory can use adapters based on category.

KangLin commented 2 years ago

Before the modification, the qDebug output log all categories are output to Qt. You cannot output to the corresponding category as defined by Qt. This PR solved this issue. It can be output to the corresponding category. The category is currently prefixed with Qt. Is it configurable with the prefix Qt?