Scribe.js/package.json

61 lines
7 KiB
JSON
Raw Normal View History

{
2014-08-01 02:43:36 -05:00
"name": "scribe",
"description": "Unlike 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.",
"version": "0.1.0",
"homepage": "https://github.com/bluejamesbond/Scribe.js",
"keywords": [],
"author": {
"name": "Mathew Kurian",
"email": "MathewKurian@utexas.edu",
"url": "https://github.com/bluejamesbond"
},
"repository": {
"type": "git",
2014-08-27 15:10:15 +02:00
"url": "git://github.com/bluejamesbond/Scribe.js.git"
},
"bugs": {
2014-08-27 15:10:15 +02:00
"url": "https://github.com/bluejamesbond/Scribe.js/issues"
},
"licenses": [
{
"type": "MIT",
2014-08-27 15:10:15 +02:00
"url": "https://github.com/bluejamesbond/Scribe.js/blob/master/LICENSE-MIT"
}
],
"main": "index.js",
"engines": {
"node": "0.10.29"
},
"scripts": {
"test": "grunt nodeunit"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt": "~0.4.5"
},
"directories": {
"test": "test"
},
"license": "MIT",
"dependencies": {
"callsite": "^1.0.0",
"colors": "^0.6.2",
"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"
},
"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\").
"readmeFilename": "README.md",
"_id": "scribe@0.1.0",
"_shasum": "0c1760410b7b3bbcea562fd8ed1aba90d6cc06a3",
"_resolved": "git+https://github.com/bluejamesbond/Scribe.js.git#0ab884d6b39ce79a431a23f683358c50a0508812",
2014-08-27 15:12:47 +02:00
"_from": "git+https://github.com/bluejamesbond/Scribe.js.git"
}