KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
Footprint
★ 12
Open GitHub ↗
Debug logger for Android
Download README (.md)
Explore Similar Repositories
danger-clorox
:
A Danger plugin for Clorox.
lispinc
:
An "explicit control" Lisp interpreter written in assembly-like C
MVPDemo
:
使用MVP搭建项目框架
countdown.js
:
:hourglass_flowing_sand: Very lightweight (0.39kb min+gzip), no dependencies Countdown timer that provides a simple API to get various time formats
devscripts
:
一个运维小兵写的脚本
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
Footprint
?
Download (.md)
# Footprint Debug logger for Android-Kotlin. Usage ----- You just write `footprint()`, logcat shows `[ClassName#MethodName:LineNumber] + (links to the line of code)` when program reach the line. ```kotlin class SampleActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) footprint() // [SampleActivity#onCreate:4] + (links to the line of code) } } ``` Logcat shows as below. (When starting [KtxExampleActivity.kt](/app/src/main/java/com/morayl/footprintexample/KtxExampleActivity.kt).)  Footprint has more useful functions, log multiple params, json, stacktrace, pair values, etc. Please see examples at [KtxExampleActivity.kt](/app/src/main/java/com/morayl/footprintexample/KtxExampleActivity.kt). You can see library methods at [Footprint.kt](/footprint/src/main/java/com/morayl/footprint/Footprint.kt). Download -------- ```groovy repositories { mavenCentral() } dependencies { debugImplementation 'io.github.morayl:footprint:2.0.0' releaseImplementation 'io.github.morayl:footprint-noop:2.0.0' } ``` This library is suitable for bug investigation or log during development. Major functions are a little bit slow, because using `stack trace`. Recommend, using `debugImplementation` and remove footprint's codes before release build. Or use `footprint-noop` in releaseImplementation. Or use `implementation` and switch enable using `configureFootprint(enable = BuildConfig.DEBUG)`. ChangeLog -------- See [ChangeLog](./CHANGELOG.md) Old library(Footprint.java) --------------------------- Footprint.java has stopped development. But you can use. ([Readme](./README_for_java.md) / [ChangeLog](./CHANGELOG_for_java.md)). In Java, you "can" use Footprint to write FootprintKt.~ but it's not useful. License -------- Copyright 2022 morayl 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.