This example shows how to configure log4php using an XML configuration file. The framework will be configured to log messages to a file, but only those with level greater or equal to WARN.
First, create a configuration file named config.xml containing: