Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@invilite/logger
Advanced tools
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9bdbdeea92924bc0b77589082022560c)](https://www.codacy.com/gh/Invilite/logger/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Invilite/logger&utm_campaign=Badge_Grade)
Readme
Simple but powerful logger using RFC-5424, compatible with Syslog.
This is a Node.js module available through the npm registry.
Using npm:
$ npm install @invilite/logger
Using bower:
$ bower install @invilite/logger
Using yarn:
$ yarn add @invilite/logger
import {Logger, LogLevel, LogFormat} from "@invilite/logger";
import {Console} from "@invilite/Transports";
const logger = new Logger();
logger.addTransport(new Console(LogLevel.debug, LogFormat.FORMAT_COLOR));
logger.trace("This is long trace message, used to trace errors", process.argv);
logger.debug("Example debug log, debug is:", false);
logger.info("Example info content.");
Register new transport.
addTransport(transport: AbstractTransport): Logger;
const logger = new Logger();
logger.addTransport(new Console(LogLevel.debug, LogFormat.FORMAT_COLOR));
Replace all transports.
setTransports(transports: AbstractTransport[]): Logger;
const logger = new Logger();
logger.setTransports([
new Console(LogLevel.debug, LogFormat.FORMAT_COLOR)
]);
Set time format, in format used by @invilite/date@format().
setTimeFormat(format: string): Logger;
Get current time format.
getTimeFormat(): string;
Library is licensed under a GNU General Public License v3.0
FAQs
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9bdbdeea92924bc0b77589082022560c)](https://www.codacy.com/gh/Invilite/logger/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Invilite/logger&utm_campaign=Badge_Grade)
The npm package @invilite/logger receives a total of 0 weekly downloads. As such, @invilite/logger popularity was classified as not popular.
We found that @invilite/logger 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.