You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

crystolnetwork-log

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

crystolnetwork-log

A simple module to make your life easier.

1.2.4
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Language -> English

[Portuguese] Informações

Esse modulo foi desenvolvido com o intuito de auxilixar nas atividades de registro de logs da CrystolNetwork.

Instalação

npm install crystolnetwork-log

Forma de uso em Javascript

const crystol = require("crystolnetwork-log");

[NOVO] - Suporte a timeZones (Padrão: America/Sao_Paulo)
crystol.log("Bom dia mundo!!", "bomdiamundo.log", "America/New_York") // (timeZone, America/Sao_Paulo, etc)

// Definir um registro simples.
crystol.log("Bom dia mundo!!", "bomdiamundo.log") // (txt, log, etc)

// Definir um registro dentro de uma pasta.
// NOTA: Sempre verifique antes se essa pasta direcionada no registro existe.
crystol.log("Bom dia mundo!!", "./registros/bomdiamundo.log") // (txt, log, etc)

// Remover um registro.
crystol.remove("bomdiamundo.log")

// Verifique se o arquivo existe
if (crystol.exists('bomdiamundo.log')) console.log("✅")

// Envie uma mensagem colorida no console.
crystol.error("Oi erro!") -> mensagem vermelha
crystol.warn("Oi aviso!") -> mensagem amarela
crystol.debug("Oi debug!") -> mensagem azul

// Utilize um sistema de cores baseado no Minecraft
crystol.text("&0Oi, tudo bem?") -> mensagem preto

// Previna erros e ainda registre qualquer possível erro com:
crystol.debugFunction(() => { 
    
    // Seu código inteiro aqui.
    function test() {
        return console.log(user) // Return user is not defined (error)
    }

    test()

}, "teste.log") 
// Localização/nome do arquivo que será responsável por guardar qualquer erro que venha a acontecer.

LICENSE

Este projeto está licenciado sob a Licença Apache License 2.0

Keywords

async

FAQs

Package last updated on 04 May 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