log function should only emit once if _server object