Logging from Bootstrap mode? We've been using bootstrap.php to have a basic PHP file run parts of some content-sync from a plugin we've written. 

The sync is run from cron and this works great. 

BUT - when the sync runs from the bootstrapped file - there are no logging info stored. I.e. the sync code works fine, but nothing is logged to: craft/storage/runtime/logs/&lt;pluginname&gt;.log - when triggering the sync from within the CP as a full-craft request, logging works fine. 

Is there a way to get the bootstrap app to setup logging, so that logging from my plugin would work?
If you're doing it from a custom bootstrap script, you'd need to do something like this for plugin logging to work:

$craft = require '../craft/app/bootstrap.php';

craft()-&gt;plugins-&gt;loadPlugins();
MyPlugin::log('My Message', LogLevel::Error);
craft()-&gt;end();