Pretty (!), powerful and highly customizable Node.js logger.
Table of Contents
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
Settings
API
Contants
EMO
SYM
Methods
All method options
can be customized globally
debug()
ß.log(message: string, isColorless?: boolean, options)
ß.log(message: string, icon?: string, isColorless?: boolean)
error()
ß.log(message: string, isColorless?: boolean, options)
ß.log(message: string, icon?: string, isColorless?: boolean)
info()
ß.log(message: string, isColorless?: boolean, options)
ß.log(message: string, icon?: string, isColorless?: boolean)
log()
ß.log(message: string, isColorless?: boolean, options)
ß.log(message: string, icon?: string, isColorless?: boolean)
warn()
ß.log(message: string, options: OutputOptions)
ß.log(message: string, icon?: string, isColorless?: boolean)
Examples
ß.log("Some")
Options
OutputOptions
type OutputOptions = {
isColorless?: boolean
}
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 😉.