Logging from Bootstrap mode?
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();