Android Open Source - vocabulary-list Thread Logging Tree






From Project

Back to project page vocabulary-list.

License

The source code is released under:

Apache License

If you think the Android project vocabulary-list listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.rulych.vocabularylist.util;
/*from   w  ww . java 2  s .c o  m*/
import timber.log.Timber;

public class ThreadLoggingTree extends Timber.DebugTree {

    @Override public void v(String message, Object... args) {
        args = addThreadArgTo(args);
        super.v("%s " + message, args);
    }

    @Override public void v(Throwable t, String message, Object... args) {
        args = addThreadArgTo(args);
        super.v(t, "%s " + message, args);
    }

    @Override public void d(String message, Object... args) {
        args = addThreadArgTo(args);
        super.d("%s " + message, args);
    }

    @Override public void d(Throwable t, String message, Object... args) {
        args = addThreadArgTo(args);
        super.d(t, "%s " + message, args);
    }

    @Override public void i(String message, Object... args) {
        args = addThreadArgTo(args);
        super.i("%s " + message, args);
    }

    @Override public void i(Throwable t, String message, Object... args) {
        args = addThreadArgTo(args);
        super.i(t, "%s " + message, args);
    }

    @Override public void w(String message, Object... args) {
        args = addThreadArgTo(args);
        super.w("%s " + message, args);
    }

    @Override public void w(Throwable t, String message, Object... args) {
        args = addThreadArgTo(args);
        super.w(t, "%s " + message, args);
    }

    @Override public void e(String message, Object... args) {
        args = addThreadArgTo(args);
        super.e("%s " + message, args);
    }

    @Override public void e(Throwable t, String message, Object... args) {
        args = addThreadArgTo(args);
        super.e(t, "%s " + message, args);
    }

    private Object[] addThreadArgTo(Object[] args) {
        Object[] args2 = new Object[args.length + 1];

        args2[0] = Thread.currentThread();
        System.arraycopy(args, 0, args2, 1, args.length);

        return args2;
    }

}




Java Source Code List

com.rulych.vocabularylist.AppModule.java
com.rulych.vocabularylist.VocabularyListApplication.java
com.rulych.vocabularylist.activities.VocabularyListActivity.java
com.rulych.vocabularylist.adapters.CardAdapter.java
com.rulych.vocabularylist.fragments.BaseCardFragment.java
com.rulych.vocabularylist.fragments.CardFragment.java
com.rulych.vocabularylist.fragments.DriveApiFragment.java
com.rulych.vocabularylist.fragments.NewCardFragment.java
com.rulych.vocabularylist.fragments.VocabularyListFragment.java
com.rulych.vocabularylist.model.Card.java
com.rulych.vocabularylist.model.comparation.CardComparator.java
com.rulych.vocabularylist.model.persistence.CardDAO.java
com.rulych.vocabularylist.model.persistence.PersistenceModule.java
com.rulych.vocabularylist.model.persistence.impl.CardDAOImpl.java
com.rulych.vocabularylist.model.persistence.impl.CardListReaderImpl.java
com.rulych.vocabularylist.model.persistence.impl.CardListReader.java
com.rulych.vocabularylist.model.persistence.impl.CardListWriterImpl.java
com.rulych.vocabularylist.model.persistence.impl.CardListWriter.java
com.rulych.vocabularylist.model.persistence.impl.FileGetterImpl.java
com.rulych.vocabularylist.model.persistence.impl.FileGetter.java
com.rulych.vocabularylist.model.persistence.impl.exception.CardNotFoundException.java
com.rulych.vocabularylist.model.persistence.impl.exception.CouldNotGetFileException.java
com.rulych.vocabularylist.model.persistence.impl.exception.CouldNotReadFileException.java
com.rulych.vocabularylist.model.persistence.impl.exception.CouldNotWriteFileException.java
com.rulych.vocabularylist.util.BaseRuntimeException.java
com.rulych.vocabularylist.util.FloatingActionButtonAnimator.java
com.rulych.vocabularylist.util.ThreadLoggingTree.java
com.rulych.vocabularylist.util.UtilModule.java
com.rulych.vocabularylist.util.impl.FloatingActionButtonAnimatorImpl.java