docs: Encourage applications to define G_LOG_DOMAIN

https://bugzilla.gnome.org/show_bug.cgi?id=785130
This commit is contained in:
Debarshi Ray 2017-07-20 18:57:01 +02:00
parent fd541c3518
commit 8962736ba9

View File

@ -275,8 +275,7 @@ myInvalidParameterHandler(const wchar_t *expression,
*
* Defines the log domain.
*
* For applications, this is typically left as the default %NULL
* (or "") domain. Libraries should define this so that any messages
* Libraries should define this so that any messages
* which they log can be differentiated from messages from other
* libraries and application code. But be careful not to define
* it in any public header files.
@ -285,6 +284,12 @@ myInvalidParameterHandler(const wchar_t *expression,
* |[
* AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Gtk\"
* ]|
*
* Applications can choose to leave it as the default %NULL (or "")
* domain. However, defining the domain offers the same advantages as
* above.
*
*/
/**