aspose file tools*
The moose likes Beginning Java and the fly likes where will be the log file?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

where will be the log file??

bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
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

Joined: Mar 24, 2008
Posts: 3775

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.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
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

Joined: Mar 24, 2008
Posts: 3775

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
Sheriff

Joined: Sep 28, 2004
Posts: 18139
    
  39

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where will be the log file??
 
Similar Threads
Customize Logger Problem
Log4J created two log files but should have only done one
how to create property file for log4j
how to define a path to save a log file in log4j
Help Please -log4j:WARN No appenders could be found for logger