In the log4php documentation they configure only a root logger. (see: http://logging.apache.org/log4php/quickstart.html)
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="myAppender" class="LoggerAppenderFile">
<param name="file" value="myLog.log" />
</appender>
<root>
<level value="WARN" />
<appender_ref ref="myAppender" />
</root>
</configuration>
The above is configuration ONLY for the root logger. Yet they continue in their example:
// Fetch a logger, it will inherit settings from the root logger
$log = Logger::getLogger('myLogger');
What about if I only want the root logger? The fact they overlook this on the Quick Start is mind boggling. Why should I have 2 loggers off the bat, one which they don't even configure (will it break my code if I execute this example? I think so!), and not 1?
So the question remains, how can I use simply the root logger?
Answer:
After my ranging I found the answer in deeper in their documentation (see http://logging.apache.org/log4php/docs/loggers.html) :
Invoking the class static Logger::getRootLogger() method retrieves the root logger.