Logger
@agros/logger / Logger
Class: Logger
Table of contents
Constructors
Methods
Constructors
constructor
• new Logger()
Methods
error
▸ error(message, error?): void
Parameters
| Name | Type |
|---|---|
message | string |
error? | Error |
Returns
void
Defined in
info
▸ info(message): void
Parameters
| Name | Type |
|---|---|
message | string |
Returns
void
Defined in
loadingLog
▸ loadingLog(message): (status: "success" | "warning" | "error", endText: string) => void
Parameters
| Name | Type |
|---|---|
message | string |
Returns
fn
▸ (status, endText?): void
Parameters
| Name | Type | Default value |
|---|---|---|
status | "success" | "warning" | "error" | undefined |
endText | string | message |
Returns
void
Defined in
spinLog
▸ Private spinLog(spinner, message): Timeout
Parameters
| Name | Type |
|---|---|
spinner | Spinner |
message | any |
Returns
Timeout
Defined in
success
▸ success(message): void
Parameters
| Name | Type |
|---|---|
message | string |
Returns
void
Defined in
updateLog
▸ Private updateLog(message): void
Parameters
| Name | Type |
|---|---|
message | string |
Returns
void
Defined in
warning
▸ warning(message): void
Parameters
| Name | Type |
|---|---|
message | string |
Returns
void