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

@moonstar-x/logger

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moonstar-x/logger

A logger with some colors and timestamps depending on the logging level.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

ci-build-status issues bundle-size version downloads-week downloads-total

@moonstar-x/logger

This is a small logging module that helps with a more organized message logging through color, logging type and timestamps.

Usage

Installation

With npm:

npm install @moonstar-x/logger

or with yarn:

yarn add @moonstar-x/logger

Importing the Package

const logger = require('@moonstar-x/logger');
import logger from '@moonstar-x/logger';

Logging Messages

You can log multiple types of messages. Objects will be serialized and stack traces will be shown.

LOG

logger.log('message to log');

INFO

logger.info('message to log');

WARN

logger.warn('message to log');

ERROR

logger.error('message to log');

FATAL

logger.fatal('message to log');

DEBUG

logger.debug('message to log');

Clear Console

You can clear the console with:

logger.clear();

Keywords

moonstar-x

FAQs

Package last updated on 30 Jul 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