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

@rtbhouse/logger

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rtbhouse/logger

Logger inspired by python logging module with batch async API

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
2
Created
Source

@rtbhouse/logger

Logger types

  • ConsoleLogger: use window.console to log records
  • ObjectLogger: return record e.g. render in DOM
  • ApiLogger: send every log record to specific endpoint (host option)
  • ApiBatchLogger: save records in local storage and sends them in batch to specific endpoint

Usage:

import {ConsoleLogger, Level} from '@rtbhouse/logger';

const logger = new ConsoleLogger({level: Level.INFO});
logger.info('new user logged in', {id: user.id});
logger.warning('password expired', {date: user.lastChangeDate});
logger.error('error occured!', {error: err.toString()});

Keywords

logger

FAQs

Package last updated on 22 Jan 2019

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