@josephdaw/logger

1.0.4 • Public • Published

Logger

npm (scoped) GitHub Node.js CI Contributor Covenant

Table of Contents

Description

A basic logger for Node.js applications. It has three logger transports set up. The first outputs to the console, the second outputs only errors to a file, and the third outputs down to the info level to a log file. The level that the console transport logs to is set by the LOG_LEVEL environment variable. If no level is set, it will default to 'info'.

Installation

Using npm

npm install @josephdaw/logger

Usage

Importing

const logger = require('@josephdaw/logger');

Issues and Requests

Please report any bugs or feature requests via GitHub Issues.

Security

Please report any security issues to dev@josephdaw.com. Find more information in our Security Policy

Contributing

All development of this project happens through GitHub. We welcome constructive collaboration from the community to help implement new features or fix bugs. For more information please read our Contribution Guide

Changelog

Every significant change is documented in the changelog file.

License

This project is released under the MIT License.

Dependents (0)

Package Sidebar

Install

npm i @josephdaw/logger

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

6.24 kB

Total Files

5

Last publish

Collaborators

  • josephdaw