Log4j allows you to configure Layouts, Appenders and Loggers and plug them together in very flexible combinations. A Layout controls what the output will comprise and how its is formatted, an Appender controls how the output is output, and a Logger categorizes where your logging is coming from. By modifying the LogConfig.xml file, you can set up the relationships to do what you want. For example, something along the lines of the following snippet (See the Log4j docs for details):
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<param name="Threshold" value="error"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n"/>
</layout>
</appender>
<logger name="org.myclasses.MyClass">
<level value="debug"/>
<appender-ref ref="CONSOLE" />
</logger>