UNPKG
node-logthis
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
A lightweight-logger built for Node.js
github.com/Nikolas-19th/node-logit
Nikolas-19th/node-logit
node-logthis
/
test
/
test.js
12 lines
(10 loc)
•
298 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
LogThis
=
require
(
'../logit'
);
const
logger =
new
LogThis
(
'Example'
,
'gray'
)
describe
(
'Function1'
,
function
(
) {
it
(
'check if info logs correctly'
,
() =>
{ logger.
info
(
"test"
) logger.
success
(
"test"
) logger.
warning
(
"test"
) logger.
erorr
(
"test"
) }); })