Add printf-like function for Console.