not-smart-log
v1.0.1
Published
a tool to print your log smartly.
Readme
This package is a tool that print your logs in console more smartly, based on the package colors-console.
Usage:
function infoLog(message: string);prints your infomation message as(<current time>) info: <message>,with the color ofinfois cyan。function errorLog(message: string);prints your error message as(<current time>) error: <message>,with the color oferoris red。function warnLog(message: string);prints your error message as(<current time>) warn: <message>,with the color ofwarnis yellow。function printLog(type: string, message: string, color?: string);print your message as(<current time>) <type>: <message>,with the color of<type>is<color>。if<color>is undefined,<type>will be normal。
<current time> is a string representing the current time, as hh:mm:ss.
