Skip to content

Instance Method

warning(_:newLine:)

Outputs a String to the Console with warning style.
func warning(_ string: String = "", newLine: Bool = true)

Parameters

string

String to print.

newLine

If true, the next output will be on a new line.

Discussion

console.warning("Watch out...")