Rose

General

Category
Free
Tag
Logging
License
MIT License
Registered
Oct 15, 2018
Favorites
0
Link
https://github.com/nmhung/Rose
See also
ktimber
slf4j-timber
ShoutOut
jlog
Logger

Additional

Language
Kotlin
Version
1.0.2 (Sep 19, 2018)
Created
Dec 26, 2017
Updated
Oct 15, 2018
Owner
Hung Manh Nguyen (nmhung)
Contributor
Hung Manh Nguyen (nmhung)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

Rose

Show Android log in the best way, easy to debug.

This is a logger with a small which provides utility on top of Android's normal Log class.

I copy this class into all the little apps I make. I'm tired of doing it. Now it's a library.

The Rose will automatically figure out from which class it's being called and use that class name as its tag.

Usage

Two easy steps:

  1. Enable debug mode in the onCreate of your application class.

        Rose.debugEnabled(BuildConfig.DEBUG)                                  
    
  2. Call Rose's static methods everywhere throughout your app.

        Rose.debug("this is the very first log")
        Rose.error("this is the very first log")
    

    It will show as below:

        I/Rose: net.fitken.rosesample.MainActivity.onCreate   
        D/Rose: this is the very first log
        I/Rose: net.fitken.rosesample.MainActivity.onCreate(MainActivity.kt:14)
        E/Rose: this is the very first log
    

Download

         implementation 'net.fitken:rose:1.0.2'