Skip to main content

@std/log@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score58%
Published2 years ago (0.215.0)

Classes

c
Logger(
loggerName: string,
levelName: LevelName,
options?: LoggerOptions
)
No documentation available
  • asString(
    data: unknown,
    isProperty?
    ): string
    No documentation available
  • critical<T>(
    msg: () => T,
    ...args: unknown[]
    ): T | undefined
    No documentation available
  • debug<T>(
    msg: () => T,
    ...args: unknown[]
    ): T | undefined
    No documentation available
  • error<T>(
    msg: () => T,
    ...args: unknown[]
    ): T | undefined
    No documentation available
  • handlers: BaseHandler[]
    No documentation available
  • info<T>(
    msg: () => T,
    ...args: unknown[]
    ): T | undefined
    No documentation available
  • level(): LogLevel

    Use this to retrieve the current numeric log level.

  • levelName(): LevelName
    No documentation available
  • loggerName(): string
    No documentation available
  • warn<T>(
    msg: () => T,
    ...args: unknown[]
    ): T | undefined
    No documentation available
c
No documentation available
  • handlers: string[]
    No documentation available
  • level: LevelName
    No documentation available
c
LogRecord(options: LogRecordOptions)

An object that encapsulates provided message and arguments as well some metadata that can be later used when formatting a message.

  • args(): unknown[]
    No documentation available
  • datetime(): Date
    No documentation available
  • level: number
    No documentation available
  • levelName: string
    No documentation available
  • loggerName: string
    No documentation available
  • msg: string
    No documentation available

Interfaces

I
No documentation available
  • handlers: { [name: string]: BaseHandler; }
    No documentation available
  • loggers: { [name: string]: LoggerConfig; }
    No documentation available
I
No documentation available
  • handlers: BaseHandler[]
    No documentation available
I
No documentation available
  • args: unknown[]
    No documentation available
  • level: LogLevel
    No documentation available
  • loggerName: string
    No documentation available
  • msg: string
    No documentation available

Type Aliases

T
GenericFunction = (...args: any[]) => any
No documentation available

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/log

Import symbol

import * as mod from "@std/log/logger";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/log/logger";