1.1.1 • Published 2 years ago

doors-logger v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

doors-logger

A logging library in javascript with various debug levels.

import using

const Logger = require('doors-logger');
const log = new Logger();

// the functions are:

log.SUCCESS(...);
log.INFO(...);
log.RESPONSE(...);
log.WARNING(...);
log.CRITICAL(...);

Each function has 2 parameters: label and content. label is the title of message and content is the body of message

log.SUCCESS(label, message)

The above will produce the following result:

$ FILEPATH_FROM_WHICH_LOGGER_IS_CALLEDmessage

HANDLESCOLORS
successgreen
infowhite
responsecyan
warningyellow
criticalred

Getting the logs in a file

log.down(FILEPATH)
1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago