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

@gaiiaa/logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gaiiaa/logger

Isomorphic logging for Node, Deno, and the browser

latest
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

Logger

LOGGER 📝

Gorgeous isomorphic logging

Npm package yearly downloads GitHub stars NuGet stable version

A tiny and beautiful logger for Node, Deno, and the browser.

Usage

Install package:

# npm
npm install @gaiiaa/logger

# yarn
yarn add @gaiiaa/logger

# pnpm
pnpm install @gaiiaa/logger

# bun
bun install @gaiiaa/logger

# deno
import * as logger from "https://esm.sh/@gaiiaa/logger"
import {
  createLogger,
  Levels,
  gradients
} from "@gaiiaa/logger";

const logger = createLogger({
  name: "LOGGER",
  level: Levels.DEBUG,
  color: gradients.sunset
})

logger("hello world!")
logger.debug("this is a debug message")
logger.info("this is an info message")
logger.warn("uh oh, something could go wrong")
logger.success("it went good!")
logger.fail("it went bad!")
logger.error("an error occurred!")
logger.critical("a critical error occurred!")
logger.fatal("*thanos snap*")
logger.whisper("you can only hear me in debug messages")
logger.say("you can only hear me at LogLevel.INFO")
logger.shout("you can always hear me, even in production")

screenshot screenshot

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

FAQs

Package last updated on 18 Dec 2023

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