Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/readme_manager/mod.ts>setupLogs

helps manage and harmonise READMEs in many repositories with template files
Latest
variable setupLogs
Re-export
import { setupLogs } from "https://deno.land/x/readme_manager@v3.0.0/mod.ts";

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')

type

(appLogFile: string) => unknown