1.4.0 • Published 6 years ago

han_solo_log v1.4.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

hansolo.log

A stylized javascript logger that helps you debug with the confidence of the millennium falcon commander.

.    === MILLENNIUM FALCON ===       *   
.   *   .     starship log     *  .       .

MESSAGE: your log here
SOURCE: {file: sourceFileName, function: yourFunct}
UPTIME: 0.094

How to Install

npm i han_solo_log

How to Use

const han = require('han_solo_log')

// option 1:
// Log a message with the millennium falcon header using .solo().
// Pass in your log message string as an argument.
// The log will include the file name and calling function ('SOURCE'),
// as well as the number of seconds the node process runs ('UPTIME').
// Note: In browser, file, function, and uptime will not log.

han.solo("your log here")

// option 2:
// Simply use .confident() without an argument. The header, source, and uptime will log with a prewritten message.
// Note: In browser, file, function, and uptime will not log.

han.confident()
1.4.0

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago