installGLibLogWriter
fun Log.installGLibLogWriter(minLevelDebug: LogLevel = LogLevel.DEBUG, minLevelRelease: LogLevel = defaultReleaseLogLevel)
Installs this writer for both debug and release builds.
By default:
For debug builds, the minimum priority level is set to LogLevel.DEBUG.
For release builds, the minimum priority level is set to LogLevel.MESSAGE.
Debug logs can still be enabled on release builds using:
export G_MESSAGES_DEBUG=all
Content copied to clipboard
Or restrict them to a specific domain:
export G_MESSAGES_DEBUG=my_app
Content copied to clipboard
To prevent this behavior, explicitly set minLevel in Log.installGLibLogWriterForReleaseBuilds.