psm accs log
This command displays log details for an Oracle Application Container Cloud Service application instance.
Use the psm accs get-logs command to generate the log details first.
Syntax
psm accs log
-n|--app-name name
-i|--instance-name name
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-n , --app-name |
Name of the application. |
-i , --instance-name |
Name of the application instance. |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Example
$ psm accs log -n employees-app -i web.1 -of json
{
"instanceName":"web.1",
"logs":[
{
"contentType":"application/zip",
"fileSize":539,
"lastModifiedTime":"2016-04-21T14:54:04.690+0000",
"logName":"server.out.zip",
"logURL":"https://ExampleDomain.storage.oraclecloud.com/v1/Storage-ExampleDomain/_apaas/employees-app/cc427540-bd17-443c-99fe-b332a28e579a/logs/web.1/e378fb74-47d1-440f-8a1e-4684de058b35/server.out.zip"
},
{
"contentType":"application/zip",
"fileSize":643,
"lastModifiedTime":"2016-04-21T21:11:50.876+0000",
"logName":"server.out.zip",
"logURL":"https://ExampleDomain.storage.oraclecloud.com/v1/Storage-ExampleDomain/_apaas/employees-app/cc427540-bd17-443c-99fe-b332a28e579a/logs/web.1/f950d7db-a3f2-4d26-8a04-4e5f31854975/server.out.zip"
}
]
}
More Information
Exploring the Application Logs and Recordings Page in Using Oracle Application Container Cloud Service