loguix

1.4.2 • Public • Published

Loguix

Loguix est un petit package qui permet de générer des logs formatés : [YYYY-MM-DD-hh-mm-ss]

Utilisation

  • Dès que vous instanciez le package, configurez une seul fois le dossier de destination des logs
const log = require("loguix")
log.setup("./logs")

Fonctions principales

const MyLogSection = new LogType("Mon nom de section")

// Affiche une information
MyLogSection.log('.....')

// Affiche un avertissement
MyLogSection.warn('.....')

// Affiche une erreur
MyLogSection.error('.....')

Etapes (Steps)

const MyLogSection = new LogType("Mon nom de section")

// Affiche une information
MyLogSection.step.init('identifiant', ".....")

// Affiche un avertissement
MyLogSection.step.end('identifiant')

// Affiche une erreur
MyLogSection.step.error('identifiant', "Descritpion de l'erreur")

Readme

Keywords

none

Package Sidebar

Install

npm i loguix

Weekly Downloads

1

Version

1.4.2

License

ISC

Unpacked Size

9.12 kB

Total Files

4

Last publish

Collaborators

  • raphix_