
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
crystolnetwork-log
Advanced tools
Esse modulo foi desenvolvido com o intuito de auxilixar nas atividades de registro de logs da CrystolNetwork.
npm install crystolnetwork-log
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.
Este projeto está licenciado sob a Licença Apache License 2.0
FAQs
A simple module to make your life easier.
We found that crystolnetwork-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.