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