All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonNonJsMain.com.saveourtool.save.cli.logging.Logger.kt Maven / Gradle / Ivy

There is a newer version: 0.3.10
Show newest version
/**
 * Logging utilities specific for native code.
 */

package com.saveourtool.save.cli.logging

import com.saveourtool.save.cli.ExitCodes

/**
 * Log [message] with level ERROR and exit process with code [exitCode]
 *
 * @param exitCode exit code
 * @param message message to log
 * @return nothing, program terminates in this method
 */
@Deprecated("never use this method in save-core as it can lead to a break of save-cloud application")
expect fun logErrorAndExit(exitCode: ExitCodes, message: String): Nothing

/**
 * Log result of [messageSupplier] with level WARN
 *
 * @param messageSupplier supplier for message to log
 */
expect fun logWarn(messageSupplier: () -> String): Unit




© 2015 - 2024 Weber Informatics LLC | Privacy Policy