@component-controls/logger
v4.0.3
Published
compilation logging utilities
Downloads
143
Readme
Table of contents
Overview
Logging utilities. Uses the chalk package for logging output
Installation
This package is usually installed as part of the @component-controls package, but you can also install it standalone:
$ npm install @component-controls/logger --save-dev
API
LogLevel
union
defined in @component-controls/logger/core/logger/src/index.ts
values
"all"
| "errors"
| "none"
LogOptions
interface
defined in @component-controls/logger/core/logger/src/index.ts
properties
| Name | Type |
| ---------- | ------------------------------- |
| logLevel
| LogLevel
|
| colors*
| [number
, number
, number
] |
log
function
defined in @component-controls/logger/core/logger/src/index.ts
parameters
| Name | Type |
| ---------- | ------------------------------- |
| heading*
| string
|
| text*
| string
|
| bgColor
| [number
, number
, number
] |
error
function
defined in @component-controls/logger/core/logger/src/index.ts
parameters
| Name | Type |
| ---------- | ------------------------------- |
| heading*
| string
|
| text*
| string
|
| bgColor
| [number
, number
, number
] |
setLogOptions
function
defined in @component-controls/logger/core/logger/src/index.ts
parameters
| Name | Type |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| options*
| Partial
logLevel
: LogLevel
colors
*: [number
, number
, number
] |