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

Setup different loggers used by the application. The default one hides debugs and detailed error messages. The debug one shows everything. The file error one is used in default mode to write error details to file but hide them in console.

import { getLogger } from "https://deno.land/std@0.146.0/log/mod.ts"
import { setupLogs } from "./logs.ts"
await setupLogs('/path/to/logfile.log')
const default = getLogger()
const debug = getLogger('debug')
const fileError = getLogger('fileError')
(appLogFile: string) => unknown[src]