Adding grunt task, fixing error log getter