UNPKG

jaid-logger

Version:

Creates an opinionated Winston logger with advanced file system output.

78 lines (37 loc) 3.02 kB
# jaid-logger <a href="https://raw.githubusercontent.com/jaid/jaid-logger/master/license.txt"><img src="https://img.shields.io/github/license/jaid/jaid-logger?style=flat-square" alt="License"/></a> <a href="https://github.com/sponsors/jaid"><img src="https://img.shields.io/badge/<3-Sponsor-FF45F1?style=flat-square" alt="Sponsor jaid-logger"/></a> <a href="https://actions-badge.atrox.dev/jaid/jaid-logger/goto"><img src="https://img.shields.io/endpoint.svg?style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2Fjaid%2Fjaid-logger%2Fbadge" alt="Build status"/></a> <a href="https://github.com/jaid/jaid-logger/commits"><img src="https://img.shields.io/github/commits-since/jaid/jaid-logger/v2.2.0?style=flat-square&logo=github" alt="Commits since v2.2.0"/></a> <a href="https://github.com/jaid/jaid-logger/commits"><img src="https://img.shields.io/github/last-commit/jaid/jaid-logger?style=flat-square&logo=github" alt="Last commit"/></a> <a href="https://github.com/jaid/jaid-logger/issues"><img src="https://img.shields.io/github/issues/jaid/jaid-logger?style=flat-square&logo=github" alt="Issues"/></a> <a href="https://npmjs.com/package/jaid-logger"><img src="https://img.shields.io/npm/v/jaid-logger?style=flat-square&logo=npm&label=latest%20version" alt="Latest version on npm"/></a> <a href="https://github.com/jaid/jaid-logger/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/jaid-logger?style=flat-square&logo=npm" alt="Dependents"/></a> <a href="https://npmjs.com/package/jaid-logger"><img src="https://img.shields.io/npm/dm/jaid-logger?style=flat-square&logo=npm" alt="Downloads"/></a> **Creates an opinionated Winston logger with advanced file system output.** ## Installation <a href="https://npmjs.com/package/jaid-logger"><img src="https://img.shields.io/badge/npm-jaid--logger-C23039?style=flat-square&logo=npm" alt="jaid-logger on npm"/></a> ```bash npm install --save jaid-logger@^2.2.0 ``` <a href="https://yarnpkg.com/package/jaid-logger"><img src="https://img.shields.io/badge/Yarn-jaid--logger-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="jaid-logger on Yarn"/></a> ```bash yarn add jaid-logger@^2.2.0 ``` <a href="https://github.com/jaid/jaid-logger/packages"><img src="https://img.shields.io/badge/GitHub Packages-@jaid/jaid--logger-24282e?style=flat-square&logo=github" alt="@jaid/jaid-logger on GitHub Packages"/></a> (if [configured properly](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages)) ```bash npm install --save @jaid/jaid-logger@^2.2.0 ``` ## Development Setting up: ```bash git clone git@github.com:jaid/jaid-logger.git cd jaid-logger npm install ``` Testing: ```bash npm run test:dev ``` Testing in production environment: ```bash npm run test ``` ## License [MIT License](https://raw.githubusercontent.com/jaid/jaid-logger/master/license.txt) Copyright © 2020, Jaid \<jaid.jsx@gmail.com> (https://github.com/jaid)