Skip to main content
log - util - Node documentation
function log

Usage in Deno

import { log } from "node:util";
log(string: string): void
Deprecated

Since v6.0.0 - Use a third party module instead.

The util.log() method prints the given string to stdout with an included timestamp.

import util from 'node:util';

util.log('Timestamped message.');

Parameters

string: string

Return Type

void