logger.js

0.0.1 • Public • Published

Logger.js

Very simple logging utility for Node.js that make slight changes to the output to make it more readable before printing it to the console.

Example

	// Load the library
	var logger = require('logger');

	// Enable debug messages
	logger.load({
		debug: true
	});

	logger.debug("This is an debug message");
	logger.info("This is an info message");
	logger.warn("This should not happen but we can recover from it and continue");
	logger.error("This is something that should not happen and we cannot continue");

Dependencies

Readme

Keywords

none

Package Sidebar

Install

npm i logger.js

Weekly Downloads

10

Version

0.0.1

License

none

Last publish

Collaborators

  • jriddick