Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/unilogger/src/file_logger.ts>FileLogger

Logger utility module for Deno
Go to Latest
class FileLogger
extends Logger
import { FileLogger } from "https://deno.land/x/unilogger@v1.0.4/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): string | void

Log a debug message.

error(message: string): string | void

Log an error message.

fatal(message: string): string | void

Log an fatal message.

info(message: string): string | void

Log an info message.

trace(message: string): string | void

Log an trace message.

warn(message: string): string | void

Log an warning message.