Skip to main content
Module

x/overlord/mod.ts>Logger

A runner for your scripts so you don't have to deploy them. 🚀
Latest
class Logger
Re-export
import { Logger } from "https://deno.land/x/overlord@v0.3.0/mod.ts";

Constructors

new
Logger(
loggerName: string,
levelName: LevelName,
options?: LoggerOptions,
)

Properties

handlers: BaseHandler[]
level: LogLevels
levelName: LevelName
readonly
loggerName: string

Methods

asString(data: unknown): string
critical<T>(msg: () => T, ...args: unknown[]): T | undefined
critical<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T
debug<T>(msg: () => T, ...args: unknown[]): T | undefined
debug<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T
error<T>(msg: () => T, ...args: unknown[]): T | undefined
error<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T
info<T>(msg: () => T, ...args: unknown[]): T | undefined
info<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T
warning<T>(msg: () => T, ...args: unknown[]): T | undefined
warning<T>(msg: T extends GenericFunction ? never : T, ...args: unknown[]): T