Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "debug-util", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Some debug utility for both server-side and client-side javascript.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/georgeosddev/debugUtil", |
@@ -8,8 +8,11 @@ # debugUtil | ||
```bash | ||
npm install --save debugUtil | ||
npm install --save debug-util | ||
``` | ||
and | ||
```javascript | ||
var debugUtil = require('debugUtil'); | ||
var debugUtil = require('debug-util'); | ||
``` | ||
### Client Side | ||
@@ -26,2 +29,3 @@ | ||
### getColorLogger(name,level,color) | ||
```javascript | ||
@@ -31,4 +35,6 @@ logger = debugUtil.getColorLogger("myLogger","info","cyan"); | ||
``` | ||
e.g. | ||
this code will display like this | ||
```javascript | ||
@@ -43,7 +49,5 @@ defaultLogger = debugUtil.getColorLogger(); | ||
defaultLogger.trace("This line is 'trace' level and color is 'white'"); | ||
//Set Name and Level | ||
appLogger = debugUtil.getColorLogger("App","info"); | ||
appLogger.log("This line is 'info' level and color is 'default' and appender name is 'App'"); | ||
//Set Name, Level and Color | ||
@@ -53,5 +57,7 @@ sysLogger = debugUtil.getColorLogger("Sys","warn","magenta"); | ||
``` | ||
![Screen Shot](https://raw.github.com/georgeOsdDev/debugUtil/master/ScreenShot.png) | ||
### loggingWrap(context,function) | ||
```javascript | ||
@@ -64,3 +70,5 @@ function sum(a,b){ | ||
``` | ||
in your console | ||
``` | ||
@@ -72,6 +80,9 @@ Start sum | ||
``` | ||
### debugToScreen(String) *client side only | ||
```javascript | ||
debugUtil.debugToScreen("message"); | ||
``` | ||
message will append to `document.body` and will hide on click. | ||
@@ -82,3 +93,4 @@ | ||
## License | ||
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/) | ||
<br/>Copyright © 2012 [Takeharu.Oshida](http://georgeosddev.github.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60931
88