Socket
Socket
Sign inDemoInstall

@kcram-solutions/logger

Package Overview
Dependencies
0
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kcram-solutions/logger

Logger simple para node y el navegador


Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Logger Simple para la organización Verified on Openbase

Socket Badge NPM npm

Simple logger para los proyecto de node.

Instalación:

NPM

npm install @kcram-solutions/logger

Navegador

<script type="module">
import {Logger} from 'https://esm.run/@kcram-solutions/logger';

let logger = new Logger('App');
</script>
// importamos la librería
const { Logger, LEVEL } = require('@kcram-solutions/logger')

const logger = new Logger(?name);

Logger.level = LEVEL.DEBUG // INFO | LOG | WARN | ERROR | CRITICAL

logger.debug('Hola from debug')
logger.info('Hola from info')
logger.log('Hola from log')
logger.warn('Hola from warn')
logger.error('Hola from error')
logger.critical('Hola from critical')

Todo:

  • Formato a los número en fechas y horas
  • Agregar color en la salida estandar
  • Separar archivos para node y navegador

FAQs

Last updated on 13 Dec 2023

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