Progetto H — API Reference API & Scripting Documentation
Static function Shared Fast

Console.Log

Logs and formats a message in the console, with formatted arguments

Syntax

Lua
Console.Log(message, args... = nil)

Parameters

Name Type Default Description
message string Message to print
args... optional any nil Other arguments to format with the message using string.format

Examples

Basic
Console.Log("Hello, world!")
With formatting (string)
local player_name = "John",Console.Log("Hello %s!", player_name)
With formatting (integer)
local health = 50,local max_health = 100,Console.Log("Player health: %d/%d", health, max_health)