From 20f75e65fd6970b451768e9f2a3f498a6a4a3f98 Mon Sep 17 00:00:00 2001 From: Guillaume Wuip Date: Wed, 29 Oct 2014 20:13:55 +0100 Subject: [PATCH] Clean package.json --- package.json | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 1c52272..0f2951f 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,7 @@ "url": "https://github.com/bluejamesbond/Scribe.js/blob/master/LICENSE-MIT" } ], - "main": "index.js", - "engines": { - "node": "0.10.29" - }, + "main": "lib/scribe.js", "scripts": { "test": "grunt nodeunit" }, @@ -43,18 +40,8 @@ "callsite": "^1.0.0", "colors": "^1.0.0", "express": "^4.7.2", - "grunt": "^0.4.5", - "grunt-contrib-jshint": "^0.10.0", - "grunt-cli": "^0.1.13", - "grunt-contrib-nodeunit": "^0.4.1", - "grunt-contrib-watch": "^0.6.1", "mkdirp": "^0.5.0", - "moment": "^2.8.0" + "moment": "^2.8.3" }, - "readme": "![Logo](__misc/scribejs design logo [a].png)\r\n=======\r\n**Lightweight NodeJS Logging**\r\nOverview\r\n=======\r\nUnlike many of the libraries out there, Scribe.js allows logging on multiple files and is divided into folders by date. And it is possibly the easiest logging you can implement. And it does everything you need a basic logger to do.\r\n- Save messages into log files organized by user, date, and type\r\n- Print messages into console using colors indicating level of importance\r\n\r\nOutput Methods (Web | Console | File)\r\n=======\r\nMethod#Web - Select Date\r\n---\r\n![Control Panel View 1](http://i.imgur.com/sXyDc09.png)\r\nMethod#Web - Select Log Type\r\n---\r\n![Control Panel View 1](http://i.imgur.com/NgCa8tR.png)\r\nMethod#Web - View Logs\r\n---\r\n![Control Panel View 1](http://i.imgur.com/ULkKn1X.png)\r\nMethod#Console - Command Prompt\r\n---\r\n![Command Prompt output](https://raw.github.com/bluejamesbond/Scribe.js/master/__misc/scribejs%20sample%20cmd%20%5Ba%5D.PNG)\r\nMethod#File - File\r\n---\r\n![Files output](https://raw.github.com/bluejamesbond/Scribe.js/master/__misc/scribejs%20sample%20file%20%5Ba%5D.PNG)\r\nMethod#File - Directory Layout\r\n---\r\n![Files Directory](https://raw.github.com/bluejamesbond/Scribe.js/master/__misc/scribejs%20sample%20directory%20%5Ba%5D.PNG)\r\n\r\nInstallation\r\n=======\r\n```\r\nnpm install git+https://github.com/bluejamesbond/Scribe.js.git\r\n```\r\nDocumentation\r\n=======\r\n```js\r\nvar scribe = require('scribe'); \r\n\r\n// Configuration\r\n// --------------\r\nscribe.configure(function(){\r\n scribe.set('app', 'MY_APP_NAME'); // NOTE Best way learn about these settings is\r\n scribe.set('logPath', './logs'); // Doublecheck // them out for yourself.\r\n scribe.set('defaultTag', 'DEFAULT_TAG');\r\n scribe.set('divider', ':::');\r\n scribe.set('identation', 5); // Identation before console messages\r\n \r\n scribe.set('maxTagLength', 30); // Any tags that have a length greather than\r\n // 30 characters will be ignored\r\n \r\n scribe.set('mainUser', 'root'); // Username of the account which is running\r\n // the NodeJS server\r\n});\r\n\r\n// Create Loggers\r\n// --------------\r\nscribe.addLogger(\"log\", true , true, 'green'); // (name, save to file, print to console,\r\nscribe.addLogger('realtime', true, true, 'underline'); // tag color)\r\nscribe.addLogger('high', true, true, 'magenta');\r\nscribe.addLogger('normal', true, true, 'white');\r\nscribe.addLogger('low', true, true, 'grey');\r\nscribe.addLogger('info', true, true, 'cyan');\r\n\r\n// Express.js\r\n// WARNING: ExpressJS must be installed for this to work\r\n// You also need to start an ExpressJS server in order for\r\n// this to work.\r\n// --------------\r\napp.use(scribe.express.logger(function(req, res){ // Express.js access log\r\n return true; // Filter out any Express messages\r\n}));\r\n\r\n// Control Panel\r\n// WARNING: ExpressJS must be installed for this to work\r\n// You also need to start an ExpressJS server in order for\r\n// this to work.\r\n// --------------\r\napp.get('/log', scribe.express.controlPanel()); // Enable web control panel\r\n\r\n// Basic logging\r\n// --------------\r\nconsole.log(\"[Tagname] Your message\"); // [Tagname] Your message \r\nconsole.realtime(\"[Tagname] Your message\"); // [Tagname] Your message\r\nconsole.high(\"[Tagname] Your message \"); // [Tagname] Your message\r\nconsole.normal(\"[Tagname][]Your message\"); // [Tagname] []Your message\r\nconsole.low(\"[Tagname]Your message\"); // [Tagname] Your message\r\n\r\n// Tagging function\r\n// ----------------\r\nconsole.t(\"Tagname\").log(\"Your message\"); // [Tagname] Your message\r\nconsole.t(\"Tagname\").log(\"Your message\"); // [Tagname] Your message\r\nconsole.t(\"Tagname\").log(\"Your message\"); // [Tagname] Your message\r\n\r\n// Force use default tag\r\n// ---------------------\r\nconsole.t().log(\"Your message\"); // [MY_APP_NAME] Your message\r\n\r\n// Pass in file name\r\n// -----------------\r\nconsole.f(__filename).log(\"Your message\"); // [file.js] Your message\r\n\r\n// Auto tagging\r\n// ------------\r\nconsole.log(\"Your message\"); // [invokedFrom.js:25] Your message\r\n\r\n// Tag Scoping\r\n// -----------\r\n(function(console){\r\n\r\n console.info(\"yeeha\"); // [scoped-tag] yeeha\r\n console.log(\"yeeha\"); // [scoped-tag] yeeha\r\n \r\n})(console.t('scoped-tag'));\r\n\r\n```\r\nExperimental\r\n=======\r\n```js\r\n// Simple Testing\r\n// --------------\r\nconsole.test(\"Test name\").should(5).be(5); // Pretty printed test results \r\n```\r\nContributors\r\n=======\r\n```\r\nbluejamesbond\r\n```\r\n", "readmeFilename": "README.md", - "_id": "scribe@0.1.0", - "_shasum": "0c1760410b7b3bbcea562fd8ed1aba90d6cc06a3", - "_resolved": "git+https://github.com/bluejamesbond/Scribe.js.git#0ab884d6b39ce79a431a23f683358c50a0508812", - "_from": "git+https://github.com/bluejamesbond/Scribe.js.git" }