Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/log.deno.ts>setupLog

Useful snippet collection.
Go to Latest
function setupLog
import { setupLog } from "https://deno.land/x/simple_utility@v0.5.2/src/log.deno.ts";

Instantiate logger with general configuration. Output to console and file. Log file default save path is ${Deno.mainModule}/execution.log.

Examples

Example 1

const log = setupLog();

Parameters

optional
name: string