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

is it possible to get logs by this interface? #13

Open
gen4sp opened this issue Jul 2, 2014 · 2 comments
Open

is it possible to get logs by this interface? #13

gen4sp opened this issue Jul 2, 2014 · 2 comments

Comments

@gen4sp
Copy link

gen4sp commented Jul 2, 2014

subj

@rlidwka
Copy link

rlidwka commented Jul 10, 2014

I don't know about logs, but it should definitely be possible to get log filenames (getMonitorData maybe?), and stream logs from those files.

@starstuck
Copy link

Yes it defenitelly is possible. I am using that feature in szarsti/pm2-bunyan. I am stramin all log messages through bunyan.

You can bind to log events:

var ipm2 = require('pm2-interface')()
ipm2.on('ready', function() {
    ipm2.bus.on('log:*', function(event, arg) {
        console.log('Log event', event, arg);
    });
});

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

3 participants