Removed global log instance, put as internal ref