Bookmark Topic Watch Topic
  • New Topic

where will be the log file??

 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Report post to moderator
can anyone tell where will my log file get stored in the below program...



import org.apache.log4j.*;
public class SimpleLogging {
/** Creates a new instance of SimpleLogging */
public SimpleLogging() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Logger logger =Logger.getLogger("name");
logger.info("Hello this is an info message");
}
}



 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Report post to moderator
You have to have either log4j.properties or log4j.xml which contains the configuration information for log4j to use. Please use an appropriate forum, this is not a general java question. Please read this.
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Report post to moderator
thank you
where do you want me to post this.....
please help if you don't mind..
m new to this site
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Report post to moderator
where do you want me to post this.....


A moderator will move this for an appropriate forum. Next time you may choose a more appropriate forum.

m new to this site


And please UseRealWords. Welcome to JavaRanch.
 
Henry Wong
author
Marshal
Pie
Posts: 20882
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
A moderator will move this for an appropriate forum. Next time you may choose a more appropriate forum.


It looks like the OP already posted a followup question in the open source forum. No need to move this topic.

Henry
 
    Bookmark Topic Watch Topic
  • New Topic