New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-logx

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-logx

node log operation

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

node-logx

introduction.

记录日志内容并查看.

example
const nodeLog = require('node-logx');
/**
 * @param dirName - 文件夹名称(默认: logs)
 * @param prefix - 前缀
 * @param subfix - 后缀
 * @param format - 日期格式(默认: YYYY-MM-DD HH:mm:ss)
 * @methods info 普通日志
 * @methods warn 警告日志
 * @methods error 错误日志
 * @methods open 打开日志所存在的文件夹
 */
const log = new nodeLog(dirName, prefix, subfix, format);

/**
 * @param printStr 输出的内容
 */
log.info(printStr);
log.warn(printStr);
log.error(printStr);
log.open();

Keywords

log

FAQs

Package last updated on 23 Oct 2022

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