Moved addLog function to Logs class