// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-deploying-application/cloud-experts-deploying-application-logging.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-deploying-application-logging-view-app-logs_{context}"]
= Viewing the application logs

[role="_abstract"]
You can view your application's logs by using the `oc` command.

.Procedure
. Enter the following command in the command-line interface (CLI) to retrieve the name of your frontend pod:
+
[source,terminal]
----
$ oc get pods -o name
----
+
**Example output**
+
[source,terminal]
----
pod/ostoy-frontend-679cb85695-5cn7x <1>
pod/ostoy-microservice-86b4c6f559-p594d
----
+
The pod name in this example is `ostoy-frontend-679cb85695-5cn7x`.
+
. Run the following command to see both the `stdout` and `stderr` messages:
+
[source,terminal]
----
$ oc logs <pod-name>
----
+
**Example output**
+
[source,terminal]
----
$ oc logs ostoy-frontend-679cb85695-5cn7x
[...]
ostoy-frontend-679cb85695-5cn7x: server starting on port 8080
Redirecting to /home
stdout: All is well!
stderr: Oh no! Error!
----