easylogger.js
v0.1.2
Published
javascript log
Downloads
4
Readme
easylogger
Information
This project is a simple logger where you can customize and be declarative with it. Also here you can save all logs in a folder, this folder will be automatic organized to use for testing, show errors and more.
Prerequisites
This project requires NodeJS and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
BEFORE YOU INSTALL: please read the prerequisites
Start with downloading the npm package
$ npm i easylogger
Usage
Start with downloading the npm package
Then you can import it
import logger from "easylogger";
Config
Easy log has a basic configuration to be more customizable for the user
options: {
showInConsole: true,
path: "./logs",
useDate: true,
},
};
For example you want to change the path where the logs save so you only have to type this
import logger from "easylogger";
logger.options.path: "./mycustom";
And the same for the others config
Contributing
Is necessary to use this PREFIXES
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'feat: add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request and wait
Authors
- German Fernandez - Initial work - Germancitoz
See also the list of contributors who participated in this project.