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

x/tiny_logger/mod.ts>TinyLogger

Logs to console, CSV files or JSON into a text file.
Go to Latest
class TinyLogger
import { TinyLogger } from "https://deno.land/x/tiny_logger@v1.0.2/mod.ts";

Constructors

new
TinyLogger(options: LogOptions)

Methods

private
init()
private
logToConsole(
level: LogLevels,
source: string,
message: string,
)
private
writeFile(data: string)
debug(source: string, message: string)
error(source: string, message: string)
info(source: string, message: string)
warn(source: string, message: string)