installConsoleLogWriterForReleaseBuilds

fun Log.installConsoleLogWriterForReleaseBuilds(minLevel: LogLevel = defaultReleaseLogLevel, time: Boolean = true)

Installs this writer 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

To prevent this behavior, explicitly set minLevel.

Parameters

minLevel

The minimum log level to log. Default is LogLevel.MESSAGE in release builds, or LogPriority.DEBUG if GLib's debug mode is enabled.

time

Whether to include timestamps in the log output. Default is true.