Coder Social home page Coder Social logo

ashtrindade / logger Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 138 KB

This Logger package is a utility for logging messages in your application.

Home Page: https://www.npmjs.com/package/@ashtrindade/logger

License: MIT License

JavaScript 9.68% Shell 11.41% TypeScript 78.91%
logger node nodejs ts typescript

logger's Introduction

Logger

This Logger package is a utility for logging messages in your application. It provides a simple and flexible way to record important events, errors, and debugging information.

License Tests Status
NPM Version NPM Downloads NPM Type Definitions

Usage

To use the Logger package in your project, follow these steps:

  1. Install the package using your package manager of choice:
npm install @ashtrindade/logger
  1. Import the Log module into your code:
// CommonJS
const Log = require('@ashtrindade/logger')

// ES6
import Log from '@ashtrindade/logger'
/**
@required {string} message - data to be logged.
@optional {string} tag - use to help identify the source of the log message.
*/

Log.d(message: string, tag: string); // Debug log
Log.i(message: string, tag: string); // Info log
Log.w(message: string, tag: string); // Warning log
Log.e(message: string, tag: string); // Error log
Log.v(message: string, tag: string); // Verbose log

logger's People

Contributors

ashtrindade avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.