New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

another-logger

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

another-logger

Lightweight logging for Node.js and the browser

  • 4.0.0-pre5
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

another-logger npm npm@next

A lightweight logging utility for Node.js and the browser.

Example screenshot 1 Example screenshot 2

Installation

npm install --omit dev another-logger

Use --omit dev to avoid installing this project's development dependencies.

If installing for use in browser environments only, you can also add the --omit optional flag, which will skip installing ansi-colors (used to enable color support for Node environments).

Usage

import {defaultLogger as log} from 'another-logger';
log.info('Hi there!');

See USAGE.md for a full walkthrough of the library, including logger customization and custom transports. Also see the examples folder for complete configuration examples.

TODO: include docs link here as well

Browser environments and build tools

This library is built for both CommonJS and ES6 module consumers, and for both Node.js and the browser. The module uses the main, module, and browser fields in its package.json to provide different entry points for these environments. The Node.js runtime and most build tools will use the most appropriate entry point automatically, but you may need to configure certain tools to pick up the correct version (for example, with Rollup, via the browser option to @rollup/plugin-node-resolve).

If your setup doesn't support the browser/module fields (for example, Typescript), you can manually specify your entry point as another-logger/dist/index.{browser,node}.{mjs,cjs}. For example:

import {...} from 'another-logger/dist/index.browser.mjs';

License

MIT © eritbh

FAQs

Package last updated on 25 Nov 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc