wood burning stoves 2.0*
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


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: 3833

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: 3833

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: 18876
    
  40

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)
 
GeeCON Prague 2014
 
subject: where will be the log file??