Pm2: Get error logs directory

Created on 27 Jun 2014  ยท  2Comments  ยท  Source: Unitech/pm2

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!

Most helpful comment

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

All 2 comments

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

thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ยท  3Comments

alexpts picture alexpts  ยท  3Comments

liujb picture liujb  ยท  3Comments

xzycn picture xzycn  ยท  3Comments

lefam picture lefam  ยท  3Comments