Giter VIP home page Giter VIP logo

android-logging-log4j's People

Watchers

 avatar

android-logging-log4j's Issues

Erro start emulator

[2012-04-23 10:28:38 - XXX] Dx warning: Ignoring InnerClasses attribute for an 
anonymous inner class
(org.apache.log4j.xml.DOMConfigurator$5) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-04-23 10:28:39 - XXX] ------------------------------
[2012-04-23 10:28:39 - XXX] Android Launch!
[2012-04-23 10:28:39 - XXX] adb is running normally.

Original issue reported on code.google.com by [email protected] on 23 Apr 2012 at 1:49

Trying to implement the logger gives a FileNotFoundException

What steps will reproduce the problem?
1. Follow the instructions provided on the site and import all the jars for 
log4j and slf4j
2. Create the logConfigurator as shown in the example
3. Write a log info for an example
4. Add to the manifest the permisions android.permission.WRITE_EXTERNAL_STORAGE

What is the expected output? What do you see instead?
I get the following eror
E/AndroidRuntime(408): Caused by: java.io.FileNotFoundException: 
/sdcard/speedy.log

What version of the product are you using? On what operating system?
I am using version 1.0.2 of the product in the windows xp, eclipse environment


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 14 May 2012 at 11:21

Allow TagLayout to be set

I am using version 1.0.3.

I'd like to be able to set the layout of the TAG. Generally, I'd like to narraw 
it down to the simple class name:

tagLayout = "%c{1}"

The LogConfigurator should have a public setter and hand the layout over to the 
appender: 

public void setTagLayout(final String tagLayout) {
   this.tagLayout = tagLayout;
}

Original issue reported on code.google.com by [email protected] on 5 Nov 2012 at 3:25

Multiple lines,

What steps will reproduce the problem?

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ViewsActivity {
    private final Logger log =  LoggerFactory.getLogger(ViewsActivity.class);

@Override
public void onCreate(Bundle pSavedInstanceState) {
    ConfigureLog4j.configure();
    log.info("info");
    log.debug("debug");
    log.error("error");
}


package com.niffy.views.misc;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import android.os.Environment;
import de.mindpipe.android.logging.log4j.LogConfigurator;
public class ConfigureLog4j {
    private final static LogConfigurator mLogConfigurator = new LogConfigurator();
    public ConfigureLog4j(){

    }

    public static void configure() {
        mLogConfigurator.setFileName(Environment.getExternalStorageDirectory() + "/myapp.log");
        mLogConfigurator.setUseLogCatAppender(true);
        mLogConfigurator.setFilePattern("%d - [%p::%c::%C] - %m%n");
        mLogConfigurator.setLogCatPattern("%m%n");
        mLogConfigurator.configure();
    }

}

What is the expected output? What do you see instead?
I expect Info, Debug, Error messages.
I get them multiple times (3 in all)

What version of the product are you using? On what operating system?
android-logging-log4j-1.0.2.jar
log4j-1.2.17
slf4j-api-1.6.6
slf4j-log4j12-1.6.6
Android 2.2.2

Please provide any additional information below.

I cannot see what I am doing what and why the hell Its outputting 3 times.  
What am I doing wrong. Quite frankly the information available regarding 
logging for android is woeful. 

Original issue reported on code.google.com by [email protected] on 22 Jun 2012 at 7:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.