Skip to content
Vapor Week is coming 14th September!

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

print(_:newLine:)

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

Parameters

string

String to print.

newLine

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

Discussion

console.print("Hello, world!")