Heh, from your title.
Why can't I have a global named "log"
If you're asking this because you can have a local one named log,
I guess you can check out "3.3 Declarative regions and scopes"
and some of the "3.4 Name look up" sections here
( or in your own real version )

But still, change it