Pretty (!), powerful and highly customizable Node.js logger.
Table of Contents
Install
npm i -E bhala
or:
yarn add -E bhala
Usage
A not-so-serious proposed practice is to use the ß
character to reference bhala library.
- Linux: DuckDuckGo it!
- macOS: Option + s
- Windows: Alt + 225
import ß from 'bhala';
ß.log('Here is a wonderful log.');
ß.event('Here is a wonderful event.');
API
Contants
EMO
List of emoji keys that should named like you do in Markdown, i.e.: computer
for :computer:
.
Methods
debug()
ß.debug(...messages: string[])
error()
ß.error(...messages: string[])
event()
ß.event(...messages: string[])
info()
ß.warn(...messages: string[])
log()
ß.log(...messages: string[])
success()
ß.success(...messages: string[])
warn()
ß.warn(...messages: string[])
Name
You may wonder why "bhala"? It means "write" in Zulu, which you can learn how to conjugate (ngibhala,
ubhala, etc) if you also love learning new languages 😉.