Skip to content

Commit

Permalink
bump fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jul 29, 2014
1 parent 0a98b4a commit 2a07d05
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 0.9.5

- Bump fix to display old logs streaming by default

# 0.9.4

- Bump fix
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ $ pm2 monit # Monitor all processes
# Logs

$ pm2 logs # Display all processes logs in streaming
$ pm2 ilogs # Advanced termcaps interface to display logs
$ pm2 flush # Empty all log file
$ pm2 reloadLogs # Reload all logs

Expand Down Expand Up @@ -350,6 +351,14 @@ $ pm2 logs big-api
$ pm2 flush # Clear all the logs
```
### Advanced log interface
Navigate between processes logs in realtime with an ergonomic interface:
```bash
$ pm2 ilogs
```
### Reloading all logs (SIGUSR2/Logrotate)
To reload all logs, you can send `SIGUSR2` to the pm2 process.
Expand Down
6 changes: 6 additions & 0 deletions bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ commander.command('logs [id|name]')
CLI.streamLogs(id);
});

commander.command('ilogs')
.description('advanced interface to display logs')
.action(function(id) {
CLI.ilogs(id);
});


//
// Kill
Expand Down
4 changes: 4 additions & 0 deletions lib/CLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,10 @@ function fallbackLogStream(id) {
}

CLI.streamLogs = function(id) {
fallbackLogStream(id);
};

CLI.ilogs = function() {
try {
var logs = require('pm2-logs').init({
format: 'MMMM Do YYYY, h:mm:ss a'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pm2",
"preferGlobal": "true",
"version": "0.9.4",
"version": "0.9.5",
"os": [
"!win32"
],
Expand Down

0 comments on commit 2a07d05

Please sign in to comment.