nodejs print console.log to http

Viewed 7706

I made a script in NodeJS with multiple conditions. I want to export/print the console.log to a webpage using NodeJS Server.

function myfunction() {
    app('Some text', 'ALERT!', function(err, remaining) {
        if (err) throw err;
        console.log('Some text.');

Is this possible? I've searched everywhere.

Thanks a lot!

1 Answers
Related