Skip to content

logful/logful-android

Repository files navigation

logful-android

Build Status License

Logful logging sdk for Android. Refer to https://logful.github.io/ for more information on Logful project.

Features

  • Easy to setup all stuff within 5mins.
  • Log storage and transportation with compression and encryption.
  • Easy log search by specific log field defined in custom log template, powered by Graylog opensource log management system.
  • Multiple log control strategies to reviewing log for specific users.
  • Handy screenshot support to diagnosing UI related bugs.
  • Log pre-recording strategy to monitoring hard-to-reproduce bugs.

Android Studio Setup

dependencies {
    compile('com.getui:logful:0.3.0')
}

Usage

Initialize logful android sdk

import android.app.Application;

import com.getui.logful.LoggerConfigurator;
import com.getui.logful.LoggerFactory;
import com.getui.logful.annotation.LogProperties;

public class MainApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        LoggerFactory.init(this);
    }
}

Log message use logful android sdk

// Use default logger
LoggerFactory.debug(TAG, "debug|message");

// Use custom logger
Logger logger = LoggerFactory.logger("sample");
logger.verbose(TAG, "verbose message");

Log message with screenshot use logful android sdk

// Use default logger
LoggerFactory.debug(TAG, "debug|message", true);

// Use custom logger
Logger logger = LoggerFactory.logger("sample");
logger.verbose(TAG, "verbose message", true);

License

The MIT License (MIT)

Copyright (c) 2015-2016 Zhejiang Meiri Hudong Network Technology Co. Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

logful logging sdk for android

Resources

License

Stars

38 stars

Watchers

4 watching

Forks

Packages

 
 
 

Contributors