installOnReleaseApp
fun installOnReleaseApp(minPriority: LogPriority = if (isGLogDebugEnabled()) LogPriority.DEBUG else LogPriority.MESSAGE, time: Boolean = true, color: Boolean = true)
Installs this logger for release builds if the application is not debuggable.
Debug logs can still be enabled on release builds using the standard GLib g_log
mechanism:
export G_MESSAGES_DEBUG=all
Content copied to clipboard
To prevent this behavior, explicitly set minPriority.
Parameters
minPriority
The minimum log priority to log. Default is LogPriority.MESSAGE in release builds.
time
Whether to include timestamps in the log output. Default is true
.
color
Whether to include ANSI color codes in the log output. Default is true
.