@@ -84,19 +84,25 @@ func SetLoggingOptions(options LoggingOptions) {
8484
8585// DisableLogging permanently disables the global internal logger.
8686//
87- // No log messages will be buffered internally after this is called, and the buffer
88- // is cleared . This function should only be called once and is not thread-safe or
89- // re-entry safe.
87+ // Log messages will be buffered until this function is called, or a logging connection
88+ // is created . This must not be called while a logging connection already exists.
89+ // This function should only be called once and is not thread-safe or re-entry safe.
9090func DisableLogging () {
9191 C .btck_logging_disable ()
9292}
9393
9494// AddLogLevelCategory sets the log level for a specific category.
9595//
96- // This changes a global setting and affects all existing LoggingConnection instances.
96+ // This does not enable the selected categories. Use EnableLogCategory to
97+ // start logging from a specific, or all categories. This changes a global
98+ // setting and will override settings for all existing LoggingConnection instances.
9799//
98100// Parameters:
99- // - category: Log category to configure (or LogAll for all categories)
101+ // - category: If LogAll is chosen, sets both the global fallback log level
102+ // used by all categories that don't have a specific level set, and also
103+ // sets the log level for messages logged with the LogAll category itself.
104+ // For any other category, sets a category-specific log level that overrides
105+ // the global fallback for that category only.
100106// - level: Minimum log level (Trace, Debug, or Info)
101107//
102108// Messages at the specified level and above will be logged for the category.
0 commit comments