Moved logging to dedicated functions, moved http logging to httplog