1.1.0 • Published 10 years ago

obs-log v1.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
10 years ago

log

Log is a basic module usefull for writting debugging messages in console. The messages are colored in order to be easily read, and begin with the date on "HH:MM:SS.mmm" format.

There are 4 basic fonctions, one for each kind of message :

-log() -log.error() -log.info() -log.warn()

They take one argument, the message to display. If the argument is an object or an array, all it properties and the nested ones are displayed.

log.value(object, message) object can be any kind of variable, but it's really usefull for functions, arrays and objets, nested or not, wich are displayed in an easier way to read. message is an optional string wich is displayed before the object.

1.1.0

10 years ago

1.0.0

10 years ago