Skip to main content
Module

x/simple_utility/mod.ts>logEntry

Useful snippet collection.
Go to Latest
function logEntry
import { logEntry } from "https://deno.land/x/simple_utility@v1.3.6/mod.ts";

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

Examples

Example 1

const log = logEntry();

Parameters

optional
name: string