All Projects → mazenrashed → LogDNA-Android-Client

mazenrashed / LogDNA-Android-Client

Licence: Apache-2.0 license
Android client for LogDNA

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to LogDNA-Android-Client

l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+18.18%)
Mutual labels:  log, logger, logs, logging-library
ratlog.js
🐀 Ratlog JavaScript library - Application Logging for Rats, Humans and Machines
Stars: ✭ 24 (+9.09%)
Mutual labels:  logger, logs, logging-library
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+618.18%)
Mutual labels:  logger, logs, logging-library
clue
a extremely high performance log library for android. 高性能的Android日志库
Stars: ✭ 27 (+22.73%)
Mutual labels:  log, logger, logging-library
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+17031.82%)
Mutual labels:  log, logger, logging-library
Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (+131.82%)
Mutual labels:  log, logger, logs
JJSwiftLog
Swift log library for all platform
Stars: ✭ 51 (+131.82%)
Mutual labels:  log, logger, logging-library
PoShLog
🔩 PoShLog is PowerShell cross-platform logging module. It allows you to log structured event data into console, file and much more places easily. It's built upon great C# logging library Serilog - https://serilog.net/
Stars: ✭ 108 (+390.91%)
Mutual labels:  log, logger, logs
ptkdev-logger
🦒 Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+431.82%)
Mutual labels:  log, logger, logs
Gollum
An n:m message multiplexer written in Go
Stars: ✭ 883 (+3913.64%)
Mutual labels:  log, logger, logs
Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+845.45%)
Mutual labels:  log, logger, logs
Node Lambda Log
Basic logging mechanism for Node 6.10+ Lambda Functions
Stars: ✭ 115 (+422.73%)
Mutual labels:  log, logger
Serverlog
A simple, practical and innovative Node.js log library that enables you to view logs in Chrome dev tools and browser Console.
Stars: ✭ 117 (+431.82%)
Mutual labels:  log, logger
Easylogger
An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
Stars: ✭ 1,968 (+8845.45%)
Mutual labels:  log, logger
log
Aplus Framework Log Library
Stars: ✭ 14 (-36.36%)
Mutual labels:  log, logger
Rain
Visualize vertical data inside your terminal 💦
Stars: ✭ 84 (+281.82%)
Mutual labels:  log, logger
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+522.73%)
Mutual labels:  log, logger
Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (+590.91%)
Mutual labels:  log, logger
Easy Log Handler
Human-friendly log files that make you more productive
Stars: ✭ 2,070 (+9309.09%)
Mutual labels:  log, logger
Lajax
🚀 lajax - 前端日志解决方案。
Stars: ✭ 181 (+722.73%)
Mutual labels:  log, logger

LogDNA-Android-Client

Android client for LogDNA

Android Arsenal

Add the JitPack repository to your build file

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Add dependency

dependencies {
	implementation 'com.github.mazenrashed:LogDNA-Android-Client:${LAST_VERSION}'
}

Add permissions to manifest

<uses-permission android:name="android.permission.INTERNET" />

Initialize LogDNA

Should be initialized once in Application.onCreate():

LogDna.init(LOG_DNA_API_KEY, APP_NAME, HOST_NAME)

Start Logging

LogDna.log(  
        Line.Builder().setLine("Some Test")  
                .addCustomField(Line.CustomField("fName", "mazen"))  
                .addCustomField(Line.CustomField("lName", "rashed"))  
		.addCustomField(Line.CustomField("age", 25))
                .setLevel(Line.LEVEL_DEBUG)  
                .setTime(System.currentTimeMillis())  
                .build()  
)

Listen to your logs

Using callback

LogDna.logResultsListener = { logResult ->  
  Log.d("LogDna", "${logResult.isSuccessful}, ${logResult.message}, ${logResult.logRequest.uid}")  
}

Using RxJava / RxKotlin

Add RxRelay dependency

dependencies {
	implementation 'com.jakewharton.rxrelay2:rxrelay:2.1.0'
}

Then subscribe to logResults

LogDna.logResults.subscribe {  logResult ->
  Log.d("LogDna", "${logResult.isSuccessful}, ${logResult.message}, ${logResult.logRequest.uid}")  
}

Contributing

We welcome contributions to LogDNA Android Client !

  • ⇄ Pull requests and ★ Stars are always welcome.

Already used by :

Cat® App: Fleet Management

Cat® App: Fleet Management

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].