New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@infini-dev/logging

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@infini-dev/logging

Logging Abstraction with an adapter for console.

unpublished
latest
Source
npmnpm
Version
1.2.22
Version published
Maintainers
1
Created
Source

Statements Branches Functions Lines

Infinisoft Dev is a set of developer's design patterns, scripts, templates and tools to make our lives easier and go faster. Faster, close to the speed of light!


Getting Started

Logger with an adapter for console log..

Common use case
Any output. For example, we use it to ouput data on external source like Sentry or Logrocket.

Install

Run of one these command to install.

$ npm i @infini-dev/logging

or

$ yarn add @infini-dev/slogging

Examples

Output all level.

import {storage} from '@infini-dev/logging'
const {error} = logging()

const saveDocument = (path: string, changes: string) => {
    
    // ... Implementation

   error("Failed to save..")

    // ... Implementation
}

Down the road requirement changes. You need to provide more output with multiple source. No problem, change the adaptor for another stoage without any changes to the implementation.

import {storage} from '@infini-dev/storage'
import {storageAdapterNode} from "@inifni-dev/storage/nodejs"
import {storageAdaperSentry} from "@infini-dev/sentry"
const _storage = storage([storageAdapterNode, storageAdaperSentry])

const saveDocument = (path: string, changes: string) => {
    
    // Same implementation

    storage.write(path, changes)
}

More details on www.infini-soft.com


Paid Contribution

Code for buck. You want to contribute? We will PAY for it! We are looking for collaborators to speed our eco system's development.

Powered 🚀 by Infinisoft Inc.
Wanna code the future? Come with us [https://www.infini-soft.com]

FAQs

Package last updated on 11 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts