JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 797 forks source link

No output from Hugo #123

Open connexion2000 opened 8 years ago

connexion2000 commented 8 years ago

Hi, I've added hugo to my application. However, I don't have any output from hugo. I am not using retrolambda or similar and I can't identify any potential problem. Here is my build.gradle from project:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

and build.gradle from module:

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'com.jakewharton.hugo'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "pl.hydroid.android.podcatcher"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE.txt'
    }

    dataBinding {
        enabled = true
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.android.support:support-v4:23.+'
    compile 'com.google.dagger:dagger:2.0.2'
    apt 'com.google.dagger:dagger-compiler:2.0.2'
    provided 'org.glassfish:javax.annotation:10.0-b28'
    compile 'com.android.support:recyclerview-v7:23.+'
    compile 'org.apache.commons:commons-lang3:3.4'
    compile 'joda-time:joda-time:2.8.+'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
    compile 'com.squareup.okhttp:okhttp:2.0.0'
    compile 'com.jakewharton:butterknife:7.+'
    compile 'com.marshalchen.ultimaterecyclerview:library:+'
    compile 'com.android.support:cardview-v7:23.+'
    compile 'com.facebook.fresco:fresco:0.9.+'
    compile 'com.github.dmytrodanylyk:android-morphing-button:e271da6fd524d8f8855d1016d72f6b69dfcbae8c'
}

All required elements of hugo are present, so I don't know what might be problematic here.

Marcel50506 commented 8 years ago

I'm having the same issue, configured everything as documented, but don't see any output. So +1 for this issue.

tinybright commented 8 years ago

1.Do you use a debug build?

  1. Do you use it with other Annotation?
Marcel50506 commented 8 years ago

@tinybright, to answer your questions for my project

  1. Yes, I use a debug build.
  2. Other libs I use annotations for in my project: Realm, Retrofit, OkHttp. The @DebugLog annotation never is used on the same function with these annotations however.
tinybright commented 8 years ago

Can you provide a screenshot of your logcat?

Marcel50506 commented 8 years ago

See these two screenshots. What are you expecting to see in the logcatscreen?

screen shot 2016-03-18 at 14 08 14 screen shot 2016-03-18 at 14 08 36

tinybright commented 8 years ago

122

Marcel50506 commented 8 years ago

Ok, that was stupid from me. Indeed didn't put logging to verbose. Thank you!

@connexion2000: Don't know if this 'solved' your problem, if not: sorry for hijacking your thread..

wuwenbo5 commented 3 years ago

I'm having the same issue, configured everything as documented, but don't see any output about hugo. I have put put logging to verbose,it is useless。please help me...