
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
An easy logging solution that saves to a file and displays on the console.
npx easelog init
The easelog init
cli command downloads just the logger.ts
and types.ts
file. The best part about this is it allows you to make the project yours, you can adjust the logger the way you feel appropriate. If you do end up doing something you feel would help others, consider contributing!
npm i easelog
import { Logger } from "easelog"
const path = "" // where the log file is created
const log = new Logger(path)
log.info("Message", "Location")
This is just unnecessary abstraction, but I did use chalk.js for colouring the logs to spice things up though
import { Logger } from "easelog"
const log = new Logger()
log.info("Message")
log.warn("Message")
log.error("Message", "Location")
log.debug("Message", "Location")
Note: location
is optional
Logger(path:string|undefined)
path
is optional.
saveToFile(message: string, type:logType, location: string | undefined, path: string | undefined)
location
and path
are optional.
Usage: easelog [options] [command]
Options:
-V
, --version
output the version number-h
, --help
display help for commandCommands:
init [destination]
clone logger.ts in your project; default destination is the current working directoryhelp [command]
display help for commandEaseLog
does not support commonjs
FAQs
An easy logging solution that saves to a file and displays on the console.
The npm package easelog receives a total of 0 weekly downloads. As such, easelog popularity was classified as not popular.
We found that easelog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.