This is primarily for things like unit tests / debugging where you want to change the logger without altering the configuration file.
You can use any logger class that implements the propel.logger.BasicLogger interface. This interface is based on PEAR::Log, so you can also simply pass a PEAR::Log object to this method.