logs-console
v1.0.0
Published
## Installation
Downloads
2
Readme
Logs Console
Installation
NPM
$ npm install logs-console --save
Usage
Just include in your project
import LogsConsole from "logs-console";
create a init config
Params
| Var Environment | Description | | ------ | ----------- | | APPLICATION_ID | Id application at the server | | AUTHENTICATION | Authentication is a base64 CLIENT_ID:CLIENT_SECRET server generate | | URL_SERVER | URL of server to write logs. | | ENVIRONMENT | Enviroment can be DEVELOPMENT, PRODUCTION, STAGGING. | | ENABLE_RESPONSE | Enable to show at console response server. |
LogsConsole.init(APPLICATION_ID,AUTHENTCATION,URL_SERVER,ENVIRONMENT,ENABLE_RESPONSE);
Params
| Option | Description | | ------ | ----------- | | TYPE_ERROR | can be Success, Error, Warning, etc | | CONTENT_ERROR | Content of error. |
Now you can use like that:
LogsConsole.console(CONTENT_ERROR,TYPE_ERROR)