KO
|
EN
gitlite — search
Search
#nodejs
#javascript
#python
#docker
#java
#shell
#go
#mongodb
#npm
#php
#pocketmine-mp
#json
slf4j-android
★ 60
Open GitHub ↗
SLF4J binding for the Android logger
Download README (.md)
Explore Similar Repositories
PullRefresh
:
IOS-style PullRefresh
staying_alive
:
Chrome Extension to keep session alive with background requests
ExchangeRates
:
Rate exchange JSON/JSONP APIs
swift-cheat-sheet
:
The Swift Programming Language Book - Cheat Sheet
flexy-layout
:
No description available.
// 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
slf4j-android
?
Download (.md)
SLF4J binding for the Android logger * Does not support SLF4J markers, these will be ignored. * Compatible with API version 1. ### Configuration * Loads properties from `/uk/uuid/slf4j/android/config.properties`. * Configuration can be applied per logger prefix or set the default by omitting the logger prefix. * Set the tag for the specified logger prefix: `tag.logger-prefix=TagName` * Set the log level for the specified logger prefix: `level.logger-prefix=SUPPRESS|ERROR|WARN|INFO|DEBUG|VERBOSE|NATIVE` * Show the logger name in short, compact, long format, or show caller stack frame: `showName.logger-prefix=false|short|compact|long|caller` * Show the current thread: `showThread.logger-prefix=true|false` * With no tag configured, logger names are automatically compacted to fit the Android 23 character tag limit. * The default configuration does not show the logger name or the current thread. * The default log level is NATIVE (use the Android log level for the tag). * The Android log level for each tag is cached at the time the logger is constructed. #### Example Configuration File ``` properties tag=ExampleApplication showThread=true showName=short ``` ### Maven Central * Available as `uk.uuid.slf4j:slf4j-android`. * The configuration file when using the standard project layout should be located at `src/main/resources/uk/uuid/slf4j/android/config.properties`. * Note: There is a bug in [android-maven-plugin](https://code.google.com/p/maven-android-plugin/issues/detail?id=365) that makes the runtime scope unusable. #### Maven Usage Example pom.xml: ``` xml <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>2.0.17</version> </dependency> <dependency> <groupId>uk.uuid.slf4j</groupId> <artifactId>slf4j-android</artifactId> <version>2.0.17-0</version> </dependency> ``` #### Gradle Usage Example build.gradle: ``` groovy dependencies { implementation 'org.slf4j:slf4j-api:2.0.17' implementation 'uk.uuid.slf4j:slf4j-android:2.0.17-0' } ```