Fixing apiloader usage of Log

Tried to reference Log before it's actually loaded, so I implemented a
workaround.