Skip to main content
Module

x/simple_utility/deps.ts>Logger

Useful snippet collection.
Go to Latest
class Logger
Re-export
import { Logger } from "https://deno.land/x/simple_utility@v1.4.2/deps.ts";

Constructors

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

Properties

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

Methods

asString(data: unknown, isProperty?): 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