x/readme_manager/log.ts

helps manage and harmonise READMEs in many repositories with template files
Latest
variable error
import { error } from "https://deno.land/x/readme_manager@v3.0.0/log.ts?s=error";

Error handler. Used log information to console and write to file then exit app.

import { error } from "./log.ts"
const errorHandler = error("/path/to/logfile.log", true)
errorHandler('Something went wrong.', new Error('The error'))
(
appLogFile: string,
cliMode?: boolean,
debug?: boolean,
) => unknown
[src]