MEONMedical / Log4Qt

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

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

Open KangLin opened 1 year ago

KangLin commented 1 year ago

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

KangLin commented 1 year 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?