Results 1 to 1 of 1
- 01-22-2010, 01:01 PM #1Member
- Join Date
- Jan 2010
- Rep Power
How to put stdout in a class instead of a properties file??
Not really a beginner but all the log4j questions seem to be in here.
I would like to direct stdout to the log but have only seen examples of this where there is a properties file. I would not like to use a properties file (xml or normal text) but instead would like to define all the properties in the class. I have included a sample class below which is similar to what I have coded already. Any help is appreciated.
public class Util_Logger
static Logger = Logger.getRootLogger();
FileAppender appender = new FileAppender(new SimpleLayout(), LOG_LOCATION);
//further code to define logging statements
- By iceagecoming in forum New To JavaReplies: 6Last Post: 11-06-2009, 10:45 PM
- By pbs in forum Web FrameworksReplies: 1Last Post: 10-24-2009, 02:18 AM
- By mjwoodford in forum New To JavaReplies: 0Last Post: 10-09-2009, 01:46 PM