UNPKG
ara-console
Version:
latest (0.3.0)
0.3.0
0.2.2
0.2.1
Logging functions for Ara modules so logging is consistent.
ara-console
/
example.js
7 lines
(5 loc)
•
200 B
JavaScript
View Raw
1
2
3
4
5
6
7
const
console
=
require
(
'.'
)(__filename)
console
.
log
(
'%s is a regular log'
,
'this'
)
console
.
info
(
'%s is info'
,
'this'
)
console
.
error
(
'%s is an error'
,
'that'
)
console
.
warn
(
'%s is a warning'
,
'that'
)