Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/unilogger/src/file_logger.ts>FileLogger

Logger utility module for Deno
Latest
class FileLogger
extends Logger
import { FileLogger } from "https://deno.land/x/unilogger@v1.1.0/src/file_logger.ts";

Constructors

new
FileLogger(configs: FileLoggerConfigs)

Properties

private
filename: string

Path to the file which this class will write to. Eg: ./log.log

Methods

debug(message: string, ...params: unknown[]): string | void

Log a debug message.

error(message: string, ...params: unknown[]): string | void

Log an error message.

fatal(message: string, ...params: unknown[]): string | void

Log an fatal message.

info(message: string, ...params: unknown[]): string | void

Log an info message.

trace(message: string, ...params: unknown[]): string | void

Log an trace message.

warn(message: string, ...params: unknown[]): string | void

Log an warning message.