Java Code Examples for timber.log.Timber#tag()

The following examples show how to use timber.log.Timber#tag() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseFragment.java    From android-base-mvp with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Timber.tag(getClass().getSimpleName());
    mContext = getActivity();
    mInflater = LayoutInflater.from(getActivity());
}
 
Example 2
Source File: BenihItemViewHolder.java    From CodePolitan with Apache License 2.0 5 votes vote down vote up
public BenihItemViewHolder(View itemView, OnItemClickListener itemClickListener, OnLongItemClickListener longItemClickListener)
{
    super(itemView);
    ButterKnife.bind(this, itemView);
    Timber.tag(getClass().getSimpleName());
    this.itemClickListener = itemClickListener;
    this.longItemClickListener = longItemClickListener;
    itemView.setOnClickListener(this);
    itemView.setOnLongClickListener(this);
}
 
Example 3
Source File: BenihActivity.java    From CodePolitan with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(getActivityView());
    ButterKnife.bind(this);
    Timber.tag(getClass().getSimpleName());
    onViewReady(savedInstanceState);
}
 
Example 4
Source File: DailyApplication.java    From Idaily with Apache License 2.0 5 votes vote down vote up
@DebugLog
@Override
public void onCreate() {
    super.onCreate();
    Logs.setIsDebug(BuildConfig.DEBUG);

    if (BuildConfig.DEBUG) {
        Timber.plant(new Timber.DebugTree());
        Timber.tag("daily");
    }

    appComponent = DaggerAppComponent.builder().appModule(new AppModule()).build();
    appComponent.inject(this);
}
 
Example 5
Source File: BaseItemViewHolder.java    From android-base-mvp with Apache License 2.0 5 votes vote down vote up
public BaseItemViewHolder(View itemView, OnItemClickListener itemClickListener, OnLongItemClickListener longItemClickListener) {
    super(itemView);
    ButterKnife.bind(this, itemView);
    Timber.tag(getClass().getSimpleName());
    this.mItemClickListener = itemClickListener;
    this.mLongItemClickListener = longItemClickListener;
    itemView.setOnClickListener(this);
    itemView.setOnLongClickListener(this);
}
 
Example 6
Source File: BaseActivity.java    From android-base-mvp with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(getResourceLayout());
    ButterKnife.bind(this);
    Timber.tag(getClass().getSimpleName());
    mInflater = LayoutInflater.from(mContext);
    onViewReady(savedInstanceState);
}
 
Example 7
Source File: BaseDialogFragment.java    From android-base-mvp with Apache License 2.0 5 votes vote down vote up
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    View view = mInflater.inflate(getResourceLayout(), null);
    unbinder = ButterKnife.bind(this, view);
    Timber.tag(getClass().getSimpleName());
    return setupDialog(view);
}
 
Example 8
Source File: BaseRecyclerAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BaseRecyclerAdapter(Context context) {
    this.mContext = context;
    mDatas = new ArrayList<>();
    Timber.tag(getClass().getSimpleName());
}
 
Example 9
Source File: BaseRecyclerAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BaseRecyclerAdapter(Context context, List<Data> data) {
    this.mContext = context;
    this.mDatas = data;
    Timber.tag(getClass().getSimpleName());
}
 
Example 10
Source File: BasePagerAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BasePagerAdapter(FragmentManager fm, List<Fragment> fragments, List<String> titles) {
    super(fm);
    this.mFragments = fragments;
    this.mTitles = titles;
    Timber.tag(getClass().getSimpleName());
}
 
Example 11
Source File: BaseListViewHolder.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BaseListViewHolder(View itemView) {
    ButterKnife.bind(this, itemView);
    Timber.tag(getClass().getSimpleName());
}
 
Example 12
Source File: BaseListAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BaseListAdapter(Context context) {
    this.mContext = context;
    mDatas = new ArrayList<>();
    Timber.tag(getClass().getSimpleName());
}
 
Example 13
Source File: BaseListAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BaseListAdapter(Context context, List<Data> data) {
    this.mContext = context;
    this.mDatas = data;
    this.mInflater = LayoutInflater.from(mContext);
    Timber.tag(getClass().getSimpleName());
}
 
Example 14
Source File: BasePagerAdapter.java    From android-base-mvp with Apache License 2.0 4 votes vote down vote up
public BasePagerAdapter(FragmentManager fm, List<Fragment> fragments) {
    super(fm);
    this.mFragments = fragments;
    Timber.tag(getClass().getSimpleName());
}
 
Example 15
Source File: RestartAppActivity.java    From openshop.io-android with MIT License 4 votes vote down vote up
protected void onResume() {
    super.onResume();
    Timber.tag(TAG);
    Timber.d("---------- onShopChange starting new instance. -----------");
    startActivityForResult(new Intent(this, SplashActivity.class), 0);
}
 
Example 16
Source File: BenihFragment.java    From CodePolitan with Apache License 2.0 4 votes vote down vote up
@Override
public void onCreate(@Nullable Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    Timber.tag(getClass().getSimpleName());
}
 
Example 17
Source File: BenihController.java    From CodePolitan with Apache License 2.0 4 votes vote down vote up
public BenihController(P presenter)
{
    this.presenter = presenter;
    Timber.tag(getClass().getSimpleName());
}
 
Example 18
Source File: BenihPagerAdapter.java    From CodePolitan with Apache License 2.0 4 votes vote down vote up
public BenihPagerAdapter(FragmentManager fm, List<Fragment> fragments)
{
    super(fm);
    this.fragments = fragments;
    Timber.tag(getClass().getSimpleName());
}
 
Example 19
Source File: BenihRecyclerAdapter.java    From CodePolitan with Apache License 2.0 4 votes vote down vote up
public BenihRecyclerAdapter(Context context)
{
    this.context = context;
    data = new ArrayList<>();
    Timber.tag(getClass().getSimpleName());
}
 
Example 20
Source File: BenihListViewHolder.java    From CodePolitan with Apache License 2.0 4 votes vote down vote up
public BenihListViewHolder(View itemView)
{
    ButterKnife.bind(this, itemView);
    Timber.tag(getClass().getSimpleName());
}