Permalink
Browse files

First commit

  • Loading branch information...
1 parent 14f79b2 commit b4858247e36d0a717d57892c28682d2e2aaec43b @sdolard committed Nov 7, 2011
Showing with 791 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 .npmignore
  3. +19 −0 LICENSE
  4. 0 README
  5. +44 −0 README.md
  6. +6 −0 git_hooks/pre-commit
  7. +373 −0 lib/log-to-file.js
  8. +35 −0 package.json
  9. +267 −0 test/log-to-file.js
  10. +36 −0 test/run_test.js
View
@@ -0,0 +1,2 @@
+node_modules
+*~
View
@@ -0,0 +1,9 @@
+git_hooks/pre-commit
+examples/*~
+bin/*~
+lib/*~
+test/*~
+log/
+*~
+.gitignore
+.npmignore
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright © 2011 by Sebastien Dolard (sdolard@gmail.com)
+
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
View
0 README
No changes.
View
@@ -0,0 +1,44 @@
+# node-log-to-file
+
+A simple and fast log writer. Rotation is supported.
+
+* http://nodejs.org
+
+## Installation with npm > TODO
+### Installing npm (node package manager: http://npmjs.org/)
+
+```
+curl http://npmjs.org/install.sh || sh
+```
+
+### Installing log-to-file
+
+```
+[sudo] npm install [-g] log-to-file
+```
+
+
+## Usage
+### Basic
+```javascript
+logToFile = require('log-to-file'),
+log = logToFile.create({
+ directory: __dirname/log,
+ fileName: 'log.txt'
+});
+log.write('hello world');
+
+```
+
+### Examples
+
+## Exports
+
+## Known issues
+
+## Test
+Just run test/run_test.js
+
+
+## License
+node-log-to-file is licensed under the MIT license.
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+RESULT_TEXT_OUTPUT=$(node test/run_test.js)
+RESULT_VALUE_OUTPUT=$?
+echo "$RESULT_TEXT_OUTPUT"
+exit $RESULT_VALUE_OUTPUT
+
Oops, something went wrong.

0 comments on commit b485824

Please sign in to comment.