When you are using Firebase Cloud function console and try to open the logs or health tabs from dashboard, you might not be able to see it as earlier.
Recently on Sept 1, 2022, Firebase console has depreciated the Logs and Health Tabs from dashboard.
To access the Logs and Health Tabs, go to the Google Cloud Console for an improved and better view of log and health functions under logs and usage details.
Below are the two methods to see the Logs and Health Tabs in Firebase Cloud Functions Console:
Method 1: Access through Google Cloud Console
Go to Google Cloud Console ->> Operations ->> Logging ->> Log Explorer and you would be able to see the logs in detail for your project.
Using CLI: run command ‘gcloud functions logs read [–gen2]’ or use command with function argument to view logs for any specific function as ‘gcloud functions logs read FUNCTION_NAME‘.
gcloud functions logs read [--gen2]
gcloud functions logs read FUNCTION_NAME [--gen2]
Note: you can specify [–gen2] additionally to view the logs for Cloud Functions (2nd gen).
Using UI: As shown in screenshot, Go to Google Cloud Console ->> Operations ->> Logging ->> Log Explorer and you would be able to see the logs in detail for your project.
Method 2: Using Overflow Icon in Firebase Console
Log into your Firebase Console ->> Function Menu ->> Click Overflow Icon for each function ->> Click View Logs.
and it would show you the logs quickly for every function into Firebase Console itself.