Package ch.bailu.gtk.glib
Schnittstelle Glib.OnLogFunc
- Umschließende Klasse:
Glib
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
onLogFunc
(CallbackHandler __self, Str log_domain, int log_level, Str message, Pointer user_data) Specifies the prototype of log handler functions.
-
Methodendetails
-
onLogFunc
void onLogFunc(CallbackHandler __self, @Nullable Str log_domain, int log_level, @Nonnull Str message, @Nullable Pointer user_data) Specifies the prototype of log handler functions.
The default log handler, [func@GLib.log_default_handler], automatically appends a
new-line character to @message when printing it. It is advised that any
custom log handler functions behave similarly, so that logging calls in user
code do not need modifying to add a new-line character to the message if the
log handler is changed.
The `log_domain` parameter can be set to `NULL` or an empty string to use the default
application domain.
This is not used if structured logging is enabled; see
[Using Structured Logging](logging.html#using-structured-logging).- Parameter:
log_domain
- the log domain of the messagelog_level
- the log level of the message (including the fatal and recursion flags)message
- the message to processuser_data
- user data, set in [func@GLib.log_set_handler]
-