api for logs