Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as denoStructuredLogging from "https://raw.githubusercontent.com/Yamboy1/deno-structured-logging/master/mod.ts";

§Enums

LogLevel

Logging levels

§Variables

jsonFormat

A json output format

textFormat

The default text output format

§Functions

consoleSink

A console sink (with colors)

createLogger

Create a new Logger

fileSink

A basic sink to write to a file

§Interfaces

ColorOptions

Color overrides for the console sink

ConsoleOptions

Options for the console sink

LogEntry

A parsed log entry

Logger

THe main logger class

LoggerOptions

§Type Aliases

ColorFunction

A function that changes the color of a string in the terminal, generally from std/fmt/colors.ts

LogFunction
SinkFunction

A sink is like an output, sometimes known as a handler