Socket
Socket
Sign inDemoInstall

el4js

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    el4js

A simple and modular logger for JavaScript. (Easy Logger for JavaScript)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.66 MB
Created
Weekly downloads
 

Readme

Source

el4js (Easy Logger For JavaScript)

Why el4js?

el4js is a logger for javascript intended to be simple yet modular. There are certain levels of logging and can be configured.

The documentation for this porject is a work in progress.

Features

  • Full support for all logging levels.
  • Beautiful logging.
  • Object oriented.
  • Colorful outputs.

Support

Stuck somewhere? Feel free to join our Discord server and jump right into the #package-support channel.

Getting Started

Installation

Make sure you have node.js v12x installed. This package supports types out of the box. Ignore any peer warnings as they are optional.

npm i el4js

Usage

This is a demo of how you would log an info message to the console using el4js.
JavaScript:

const el4js = require("el4js");
const logger = new el4js.Logger();

logger.info("We have some info sir.", "someSource");

Typescript:

import el4js from "el4js";
const logger = new el4js.Logger();

logger.info("We have some info sir.", "someSource");

Output:
Demo Output

For a detailed usage, see the src/tests/index.js file on GitHub.

Contributing

We are always looking out for people that may help improve this project. If you do want to contribute, open a PR on our GitHub repository.

License

This project is licensed under Apache 2.0.

Keywords

FAQs

Last updated on 29 Mar 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc