@offirmo/practical-logger-minimal-noop
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Offirmo’s practical logger - no op implementation
Offirmo’s quality seal

npm badge dependencies badge bundle size badge license badge maintenance status badge

This is a minimal, no-operation implementation of Offirmo’s practical logger.

Use this lib if you want to provide a default implementation, for example as a default value in a dependency injection mechanism, ready to be replaced by an actual version if the caller wants it, but not hurting the bundle size if the user opts out.

API

Exact same API as @offirmo/practical-logger-browser and @offirmo/practical-logger-node:

import { createLogger } from '@offirmo/practical-logger-minimal-noop'

const logger = createLogger()
logger.log('hello from logger!') // absolutely nothing happens, no-op

/@offirmo/practical-logger-minimal-noop/

    Package Sidebar

    Install

    npm i @offirmo/practical-logger-minimal-noop

    Weekly Downloads

    10

    Version

    3.0.1

    License

    Unlicense

    Unpacked Size

    18 kB

    Total Files

    17

    Last publish

    Collaborators

    • offirmo