<commit_before>Pretty-Logger
============

Pretty Logger for nodejs allows for color coded error, warning, info, debug and trace console messages with (or without) timestamp.
This is a modified version of the <a href="https://github.com/sbsoftware/node-basic-logger">basic-logger</a> project. 


Installation
------------

	npm install pretty-logger

Usage
-----

	var Logger = require('pretty-logger');
	// configure level one time, it will be set to every instance of the logger
	Logger.setLevel('warning'); // only warnings and errors will be shown
	Logger.setLevel('warning', true); // only warnings and errors will be shown and no message about the level change will be printed

	var customConfig = {
		showMillis: true;
		showTimestamp: true;
	};

	var log = new Logger(customConfig) // custom config parameters will be used, defaults will be used for the other parameters

	log.error('An error occurred'); //This will be displayed in red
	log.warn('Something isn't right); //This will be displayed in yellow
	log.info('Something just happened, thought you should know!'); //This will be displayed in green
	log.debug('Here are some notes to help you figure out whats going on'); //This will be displayed in blue
	log.trace('Heres some more stuff '); //This will be displayed in gray<commit_msg>Modified the README.md to give credit where its due<commit_after>Pretty-Logger
============

Pretty Logger for nodejs allows for color coded error, warning, info, debug and trace console messages with (or without) timestamp.
This is a modified version of the [https://github.com/sbsoftware/node-basic-logger](basic-logger) project to use [https://github.com/marak/colors.js/](colors). 


Installation
------------

	npm install pretty-logger

Usage
-----

	var Logger = require('pretty-logger');
	// configure level one time, it will be set to every instance of the logger
	Logger.setLevel('warning'); // only warnings and errors will be shown
	Logger.setLevel('warning', true); // only warnings and errors will be shown and no message about the level change will be printed

	var customConfig = {
		showMillis: true;
		showTimestamp: true;
	};

	var log = new Logger(customConfig) // custom config parameters will be used, defaults will be used for the other parameters

	log.error('An error occurred'); //This will be displayed in red
	log.warn('Something isn't right); //This will be displayed in yellow
	log.info('Something just happened, thought you should know!'); //This will be displayed in green
	log.debug('Here are some notes to help you figure out whats going on'); //This will be displayed in blue
	log.trace('Heres some more stuff '); //This will be displayed in gray
{'fraction_non_alphanumeric': 0.10850111856823266, 'fraction_numerical': 0.0, 'mean_word_length': 4.02434456928839, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1905449', 'n_tokens_mistral': 709, 'n_tokens_neox': 675, 'n_words': 335}