All Projects → fengzhizi715 → Saf Kotlin Log

fengzhizi715 / Saf Kotlin Log

完全基于 Kotlin 开发的 Android 日志框架,提供极简的 API

Programming Languages

kotlin
9241 projects

Labels

Projects that are alternatives of or similar to Saf Kotlin Log

Logrus mate
tool for logrus, let it easy to use
Stars: ✭ 148 (-24.1%)
Mutual labels:  logger
Gpslogger
A GPS logger for Android mobile devices
Stars: ✭ 164 (-15.9%)
Mutual labels:  logger
Logger
✔️ Simple, pretty and powerful logger for android
Stars: ✭ 13,093 (+6614.36%)
Mutual labels:  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 (-22.05%)
Mutual labels:  logger
Sqldb Logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
Stars: ✭ 160 (-17.95%)
Mutual labels:  logger
Android Plog
A Pure, Pretty and Powerful logging library for android.
Stars: ✭ 168 (-13.85%)
Mutual labels:  logger
Monolog Cascade
Configure multiple loggers and handlers in the blink of an eye
Stars: ✭ 136 (-30.26%)
Mutual labels:  logger
Acho
The Hackable Log
Stars: ✭ 189 (-3.08%)
Mutual labels:  logger
Paris
Logger in Rust for pretty colors and text in the terminal. Aiming for a relatively simple API
Stars: ✭ 162 (-16.92%)
Mutual labels:  logger
Lajax
🚀 lajax - 前端日志解决方案。
Stars: ✭ 181 (-7.18%)
Mutual labels:  logger
Zerolog
A zero-allocation .NET logging library
Stars: ✭ 152 (-22.05%)
Mutual labels:  logger
Sc
Common libraries and data structures for C.
Stars: ✭ 161 (-17.44%)
Mutual labels:  logger
Heliumlogger
A lightweight logging framework for Swift
Stars: ✭ 169 (-13.33%)
Mutual labels:  logger
Dotzu
📱👀 In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
Stars: ✭ 1,802 (+824.1%)
Mutual labels:  logger
Ougai
A Ruby structured logging is capable of handling a message, custom data or an exception easily and generates JSON or human readable logs.
Stars: ✭ 187 (-4.1%)
Mutual labels:  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 (-29.74%)
Mutual labels:  logger
Ulogger Android
μlogger • android application for real-time collection and publishing of geolocation data
Stars: ✭ 168 (-13.85%)
Mutual labels:  logger
Logcat
Android 日志打印框架,在手机上可以直接看到 Logcat 日志啦
Stars: ✭ 189 (-3.08%)
Mutual labels:  logger
Pino Colada
cute ndjson formatter for pino 🌲🍹
Stars: ✭ 189 (-3.08%)
Mutual labels:  logger
Easy Log Handler
Human-friendly log files that make you more productive
Stars: ✭ 2,070 (+961.54%)
Mutual labels:  logger

SAF-Kotlin-log

@Tony沈哲 on weibo License

它不仅能够打印出漂亮的日志格式,还支持定制的日志格式输出,日志分片等。

它可以在任何使用 Java、Kotlin 开发的 Android 项目中使用。(即使在您的项目中只使用 Java,也无需额外添加 Kotlin 的配置。)

功能:

  • 日志框架高度可扩展,提供丰富的接口
  • 支持自定义 Tag,便于过滤
  • 支持多种日志级别
  • 支持显示/关闭当前线程信息
  • 支持自定义 Header,可以用于标识手机、App 等版本信息
  • 提供基于 DSL 的方式配置 L
  • 基于责任链模式来打造对象的打印,将对象打印成json风格,方便阅读。默认支持JSON字符串、Collection、Map、Bundle、Intent、Reference、Throwable、Uri等类型的打印,分别做了特别的格式化处理。
  • 使用 json() 方法打印字符串时,支持超长日志的打印,解决了 Logcat 4K 字符截断的问题。
  • 支持自定义对象的解析处理,将其打印成自己想要的风格。
  • 支持字节数组的打印
  • 支持自定义日志格式存储到文件,底层基于 Kotlin Coroutines
  • 支持使用特定的 Printer 进行打印日志
  • 提供日志的打包功能
  • 提供单独的基于 OkHttp 的日志拦截器,能够打印 Request、Response 信息,便于网络接口的调试。

更详细的功能请查看wiki

最新版本

模块 最新版本
saf-log-core Download
saf-log-file Download
saf-log-okhttp Download
saf-log-converter-fastjson Download
saf-log-converter-gson Download
saf-log-debug-view Download
saf-log-extension Download

下载安装

Gradle:

implementation 'com.safframework.log:saf-log-core:<latest-version>'
implementation 'com.safframework.log:saf-log-file:<latest-version>'
implementation 'com.safframework.log:saf-log-okhttp:<latest-version>'
implementation 'com.safframework.log:saf-log-converter-fastjson:<latest-version>'
implementation 'com.safframework.log:saf-log-converter-gson:<latest-version>'
implementation 'com.safframework.log:saf-log-debug-view:<latest-version>'
implementation 'com.safframework.log:saf-log-extension:<latest-version>'

TODO List:

  • 打算提供一个 WebPrinter,支持日志打印到一个基于 Android 的 Web Server
  • Debug View 增加属性
  • 支持 ndk 的日志存储到文件
  • 支持 mmap 存储日志文件

联系方式

Wechat:fengzhizi715

Java与Android技术栈:每周更新推送原创技术文章,欢迎扫描下方的公众号二维码并关注,期待与您的共同成长和进步。

ChangeLog

版本更新记录

License

Copyright (C) 2017 - present, Tony Shen.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].