diff --git a/cockatrice/resources/config/qtlogging.ini b/cockatrice/resources/config/qtlogging.ini index 35f1c72e8..20aa206ce 100644 --- a/cockatrice/resources/config/qtlogging.ini +++ b/cockatrice/resources/config/qtlogging.ini @@ -10,13 +10,13 @@ # or set = false to disable logging #main = true -qt_translator = false -window_main.* = false -release_channel = false -spoiler_background_updater = false -theme_manager = false -sound_engine = false -tapped_out_interface = false +#qt_translator = true +#window_main.* = true +#release_channel = true +#spoiler_background_updater = true +#theme_manager = true +#sound_engine = true +#tapped_out_interface = true #tab_game = true #tab_message = true @@ -50,10 +50,10 @@ tapped_out_interface = false #card_picture_loader.card_back_cache_fail = true #card_picture_loader.picture_to_load = true #deck_loader = true -card_database = false -card_database.loading = false -card_database.loading.success_or_failure = true -cockatrice_xml.* = false +#card_database = true +#card_database.loading = true +#card_database.loading.success_or_failure = true +#cockatrice_xml.* = true #cockatrice_xml.xml_3_parser = true #cockatrice_xml.xml_4_parser = true #card_info = true diff --git a/doc/doxygen/extra-pages/developer_documentation/logging.md b/doc/doxygen/extra-pages/developer_documentation/logging.md index 24bb6d047..8fd5cb015 100644 --- a/doc/doxygen/extra-pages/developer_documentation/logging.md +++ b/doc/doxygen/extra-pages/developer_documentation/logging.md @@ -23,14 +23,16 @@ For more information, see [Logging Setup](#logging-setup). # Log Level and Categories -The default log level for the application is info. +\note The default log level for the application is info. This means that you should only use qInfo() in production-level code if you are truly sure that this message is beneficial to end-users and other developers. As a general rule, if your functionality logs to info more than twice in response to a user interaction, you are advised to consider moving some of these logs down to the debug level. -Furthermore, you are strongly advised to avoid the use of the generic logging macros (e.g. qDebug(), qInfo(), qWarn()). -You should instead use the corresponding category logging macors (qCDebug(), qCInfo(), qCWarn()) and define logging +\warning You are strongly advised to avoid the use of the generic logging macros (e.g. qDebug(), qInfo(), qWarn()). + +\note You should instead use the corresponding category logging macros (qCDebug(), qCInfo(), qCWarn()) and define +logging categories for your log statements. Example: