remote_log_elastic 1.0.0 remote_log_elastic: ^1.0.0 copied to clipboard
Persist Flutter app logs 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"
}
}