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

@gloxy/mini-logger

Package Overview
Dependencies
Maintainers
0
Versions
5
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

@gloxy/mini-logger

a debug based logger with preset colors, running on both browsers and Node.

unpublished
latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
0
Created
Source

⚠️ Deprecated Repository Notice ⚠️

⚠️ This repository is deprecated and no longer maintained as of Jun 27, 2024. ⚠️

Reason for Deprecation

This repository has been deprecated due to the development of a more advanced version logger.

Support

Please note that no further updates or support will be provided for this repository.

Thank you for your understanding.

Welcome to mini-logger 👋

Maintenance License: MIT

mini-logger a debug based logger with preset colors, running on both browsers and Node.

Install

npm install @gloxy/mini-logger

or

yarn add @gloxy/mini-logger

or

pnpm add @gloxy/mini-logger

Usage

For all logger methods, the first parameter is a title for it. The second paramter is a formatter, and the rest are any strings one by one for the formatter.

Activate logger

  • Browser: localStorage.debug = 'myapp:*'
  • Node: add the env variable DEBUG = myapp:*

Deactivate by remove them respectively.

// Create the logger instance in the very beginning of your app.
// The namespace is for the logs being distingushiable from other prints, i.e. myapp
const logger = createLogger('myapp');

// Print info
logger('play ball', 'ball player: %s', 'Mary');
logger.info('play ball', 'ball player: %s', 'Mary');

// Print warn
logger.warn('play ball', 'ball player: %s', 'Mary');

// Print success
logger.success('play ball', 'ball player: %s', 'Mary');

// Print error
logger.error('play ball', 'ball player: %s', 'Mary');

// Print debug
logger.debug('play ball', 'ball player: %s', 'Mary');

Author

👤 GloryWong

Show your support

Give a ⭐️ if this project helped you!

FAQs

Package last updated on 26 Jun 2024

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