{"action":"closed","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/976","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/976/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/976/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/976/events","html_url":"https://github.com/Unitech/PM2/issues/976","id":55922334,"number":976,"title":"Save actual log into a file?","user":{"login":"Monsignor","id":3450421,"avatar_url":"https://avatars.githubusercontent.com/u/3450421?v=3","gravatar_id":"","url":"https://api.github.com/users/Monsignor","html_url":"https://github.com/Monsignor","followers_url":"https://api.github.com/users/Monsignor/followers","following_url":"https://api.github.com/users/Monsignor/following{/other_user}","gists_url":"https://api.github.com/users/Monsignor/gists{/gist_id}","starred_url":"https://api.github.com/users/Monsignor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monsignor/subscriptions","organizations_url":"https://api.github.com/users/Monsignor/orgs","repos_url":"https://api.github.com/users/Monsignor/repos","events_url":"https://api.github.com/users/Monsignor/events{/privacy}","received_events_url":"https://api.github.com/users/Monsignor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T16:32:35Z","updated_at":"2015-01-29T16:48:37Z","closed_at":"2015-01-29T16:48:37Z","body":"My server is crashing from time to time so I need to access the logs in order to troubleshoot it.\r\n\r\nWhen I type `pm2 logs` I can see what's being logged in real time (for example, data being sent through `socket.io` etc). However, this data isn't being saved anywhere on the server, it seems.\r\n\r\nWhen I open the log located at `/root/.pm2/pm2.log` it doesn't show any of the data that I see in the console. It just repeats `entering in node wrap logic` over and over again indefinitely. The `logs` directory only contains errors, not all data that you can see in real time. This is helpful to an extent, but I really need to see the data that caused the error, not just the error message.\r\n\r\nWhat I need is to be able to see the real log, that is, everything that I can see in real-time by typing `pm2 logs`, but for the whole last 24 hours or so. This is necessary so I could compare the server crash times with the logs and see what caused them.\r\n\r\nIs there a solution for this that I am missing?"}}