0.1.2 • Published 7 years ago

tagnet-log v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

tagnet-log

Node.JS logging utility built for TAGNET by @dperussina

Install:

npm install tagnet-log --save

Usage:

/* Node.JS or in browser using Browserify */
var u = require('tagnet-log');

General logging

u.log('This is a test log message ', 'test', 3, [1, 2, 3]);
u.logLn('This is an inline test log message ', 'test', 3, [1, 2, 3]);

Output:

3/30/2017 12:05:18 PM
This is a test log message 
[string]
test
[number]
3
[array]
[
    1,
    2,
    3
]
###(u.log)###

5/2/2017 12:44:22 PM This is an inline test log message  [string] test [number] 3 [array] [1,2,3] ###(u.logLn)###

Error logging

u.error('This is a test error message ', 'test', 3, [1, 2, 3]);
u.errorLn('This is an inline test error message ', 'test', 3, [1, 2, 3]);

Output:

3/30/2017 12:05:18 PM *Exception* 
This is a test error message 
[string] 
test
[number] 
3
[array] 
[
    1,
    2,
    3
]
###(u.error)###

5/2/2017 12:45:33 PM *Exception*  This is an inline test error message  [string]  test [number]  3 [array]  [1,2,3] ###(u.errorLn)###

Types

var myVal = ['I would like to know what Type this is'];
    
    
    u.typeLog(myVal);
    
     
    u.typeLog(myVal, 'myVal');

    
var thisType = u.type(myVal);    
    console.log('thisType', thisType)

Output

5/2/2017 12:45:33 PM type [array] ###(u.typeLog)###

5/2/2017 12:45:33 PM myVal | type [array] ###(u.typeLog)###

thisType array
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago