Package ch.bailu.gtk.glib
Interface Glib.OnLogFunc
- Enclosing class:
- Glib
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLogFunc
(CallbackHandler __self, Str log_domain, int log_level, Str message, Pointer user_data) Specifies the prototype of log handler functions.
-
Method Details
-
onLogFunc
void onLogFunc(CallbackHandler __self, @Nonnull Str log_domain, int log_level, @Nonnull Str message, @Nullable Pointer user_data) Specifies the prototype of log handler functions.
The default log handler, g_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.
This is not used if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].- Parameters:
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 g_log_set_handler()
-