AngularJs splat $log factory