remote_log_elastic 1.0.1 remote_log_elastic: ^1.0.1 copied to clipboard
Persist logs of flutter applications in ElasticSearch. With a short initial setup and a direct call, you persist your log in ElasticSearch.
remote_log_elastic #
- Save flutter logs in ElasticSearch
final remoteLog = RemoteLog(
environment: RemoteLogEnv.TEST,
url: URL_ELASTIC,
indexName: INDEX_NAME,
);
- DEBUG
remoteLog.debug('Hello debug log!!!!');
- ERROR
remoteLog.error('Hello error log!!!!');
Log saved in ElasticSearch
{
"_source" : {
"environment" : "TEST",
"type" : "ERROR",
"text" : "Olá error log, tudo bem?",
"createdAt" : "1569614645246",
"syncedAt" : "1569614645246"
}
}