Added JSON log output into backend (frontend soon)