Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error logs directory #537

Closed
victorkurauchi opened this issue Jun 27, 2014 · 2 comments
Closed

Get error logs directory #537

victorkurauchi opened this issue Jun 27, 2014 · 2 comments

Comments

@victorkurauchi
Copy link

Is it possible to find where the logs are stored ?

pm2 logs show real time logs
pm2 status i can't find the path to the logs directory

Thanks!

@soyuka
Copy link
Collaborator

soyuka commented Jun 27, 2014

Try pm2 desc 0:

┌───────────────────┬─────────────────────────────────────────────────┐
│ status            │ online                                          │
│ name              │ echo                                            │
│ id                │ 0                                               │
│ path              │ /Users/soyuka/Sites/forks/pm2/test/echo.js      │
│ exec cwd          │ /Users/soyuka/Sites/forks/pm2                   │
│ error log path    │ /Users/soyuka/.pm2/logs/echo-err-0.log          │
│ out log path      │ /Users/soyuka/.pm2/logs/echo-out-0.log          │
│ pid path          │ /Users/soyuka/.pm2/pids/echo.pid                │
│ mode              │ cluster_mode                                    │
│ watch & reload    │ ✘                                               │
│ interpreter       │ node                                            │
│ restarts          │ 6                                               │
│ unstable restarts │ 0                                               │
│ uptime            │ 11h                                             │
│ created at        │ 2014-06-26T18:15:35.219Z                        │
└───────────────────┴─────────────────────────────────────────────────┘

You can also declare your own paths through a json declaration file: https://github.com/Unitech/pm2#json-app-declaration

@Unitech Unitech closed this as completed Jun 27, 2014
@ukoe321
Copy link

ukoe321 commented Mar 28, 2017

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants