Newborn Programming Monsters

    @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

    Install

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

    DownloadsWeekly Downloads

    19

    Version

    3.0.1

    License

    Unlicense

    Unpacked Size

    18 kB

    Total Files

    17

    Last publish

    Collaborators

    • offirmo